Home
last modified time | relevance | path

Searched refs:GetBuffer (Results 1 – 25 of 83) sorted by relevance

1234

/third_party/mindspore/tests/ut/cpp/dataset/
Dduplicate_op_test.cc46 ASSERT_TRUE(t->GetBuffer() == out[0]->GetBuffer()); in TEST_F()
47 ASSERT_TRUE(t->GetBuffer() != out[1]->GetBuffer()); in TEST_F()
Dtensor_test.cc116 const unsigned char *addr = t->GetBuffer(); in TEST_F()
122 const unsigned char *new_addr = t2->GetBuffer(); in TEST_F()
126 ASSERT_EQ(t->GetBuffer(), nullptr); in TEST_F()
253 ASSERT_EQ(m.data, t->GetBuffer()); in checkCvMat()
337 const unsigned char *addr = t->GetBuffer(); in TEST_F()
342 ASSERT_EQ(t->GetBuffer(), nullptr); in TEST_F()
343 ASSERT_EQ(ctv->GetBuffer(), addr); in TEST_F()
346 ASSERT_EQ(ctv->GetBuffer(), addr); in TEST_F()
351 ASSERT_EQ(ctv->GetBuffer(), addr); in TEST_F()
470 ASSERT_EQ(t->GetBuffer(), nullptr); in TEST_F()
[all …]
Dtensor_string_test.cc77 ASSERT_TRUE(*(reinterpret_cast<const uint32_t *>(t->GetBuffer() + ctr)) == i + 28); in TEST_F()
80 const char *buf = reinterpret_cast<const char *>(t->GetBuffer()) + 6 * 4 + 4; in TEST_F()
103 ASSERT_TRUE(*(reinterpret_cast<const uint32_t *>(t->GetBuffer() + ctr)) == i + 28); in TEST_F()
106 const char *buf = reinterpret_cast<const char *>(t->GetBuffer()) + 6 * 4 + 4; in TEST_F()
Ddata_helper_test.cc160 auto bytes_copied = dh.DumpData(t->GetBuffer(), t->SizeInBytes(), data, t->SizeInBytes()); in TEST_F()
188 auto bytes_copied = dh.DumpData(t->GetBuffer(), t->SizeInBytes(), data, t->SizeInBytes()); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/
Dlite_image_utils.cc36 …return input->SizeInBytes() > kJpegMagicLen && memcmp(input->GetBuffer(), kJpegMagic, kJpegMagicLe… in IsNonEmptyJPEG()
181 JpegSetSource(&cinfo, input->GetBuffer(), input->SizeInBytes()); in JpegCropAndDecode()
280 const_cast<void *>(reinterpret_cast<const void *>(input->GetBuffer())), in Crop()
284 const_cast<void *>(reinterpret_cast<const void *>(input->GetBuffer())), in Crop()
316 JpegSetSource(&cinfo, input->GetBuffer(), input->SizeInBytes()); in GetJpegImageInfo()
343 const_cast<void *>(reinterpret_cast<const void *>(input->GetBuffer())), in Normalize()
390 const_cast<void *>(reinterpret_cast<const void *>(input->GetBuffer())), in Resize()
394 const_cast<void *>(reinterpret_cast<const void *>(input->GetBuffer())), in Resize()
427 const_cast<void *>(reinterpret_cast<const void *>(input->GetBuffer())), in ResizePreserve()
472 const_cast<void *>(reinterpret_cast<const void *>(input->GetBuffer())), in RgbToBgr()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DIndirectDrawValidationEncoder.cpp293 usageTracker->BufferUsedAs(batchDataBuffer.GetBuffer(), wgpu::BufferUsage::Storage); in EncodeIndirectDrawValidationCommands()
296 usageTracker->BufferUsedAs(validatedParamsBuffer.GetBuffer(), wgpu::BufferUsage::Indirect); in EncodeIndirectDrawValidationCommands()
316 draw.cmd->indirectBuffer = validatedParamsBuffer.GetBuffer(); in EncodeIndirectDrawValidationCommands()
333 bufferDataBinding.buffer = batchDataBuffer.GetBuffer(); in EncodeIndirectDrawValidationCommands()
340 validatedParamsBinding.buffer = validatedParamsBuffer.GetBuffer(); in EncodeIndirectDrawValidationCommands()
351 commandEncoder->APIWriteBuffer(batchDataBuffer.GetBuffer(), 0, in EncodeIndirectDrawValidationCommands()
DScratchBuffer.h45 BufferBase* GetBuffer() const;
DScratchBuffer.cpp42 BufferBase* ScratchBuffer::GetBuffer() const { in GetBuffer() function in dawn_native::ScratchBuffer
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/consumers/
Dtree_consumer.cc433 …s = TransformTensor(tensor->GetBuffer(), tensor->shape(), tensor->Size(), &data, data_ptr, &dummy); in FetchFloatData()
440 …s = TransformTensor(tensor->GetBuffer(), tensor->shape(), tensor->Size(), &data, data_ptr, &dummy); in FetchFloatData()
460 …s = TransformTensor(tensor->GetBuffer(), tensor->shape(), tensor->Size(), &data, &data_ptr, &dummy… in FetchItemData()
468 …s = TransformTensor(tensor->GetBuffer(), tensor->shape(), tensor->Size(), &data, &data_ptr, &dummy… in FetchItemData()
476 …s = TransformTensor(tensor->GetBuffer(), tensor->shape(), tensor->Size(), &data, &data_ptr, &dummy… in FetchItemData()
483 …s = TransformTensor(tensor->GetBuffer(), tensor->shape(), tensor->Size(), &data, &data_ptr, &dummy… in FetchItemData()
490 …s = TransformTensor(tensor->GetBuffer(), tensor->shape(), tensor->Size(), &data, &data_ptr, &dummy… in FetchItemData()
498 …s = TransformTensor(tensor->GetBuffer(), tensor->shape(), tensor->Size(), &data, &data_ptr, &dummy… in FetchItemData()
505 …s = TransformTensor(tensor->GetBuffer(), tensor->shape(), tensor->Size(), &data, &data_ptr, &dummy… in FetchItemData()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/
Dplugin_op.cc45 …de = memcpy_s(tensor.buffer_.data(), tensor.buffer_.size(), in_row[ind]->GetBuffer(), buffer_size); in TensorRowToPlugin()
48 …int ret_code = memcpy_s(tensor.buffer_.data(), buffer_size, in_row[ind]->GetBuffer(), buffer_size); in TensorRowToPlugin()
/third_party/protobuf/csharp/src/Google.Protobuf/
DByteString.cs188 …byte[] bytes = memoryStream.Length == memoryStream.Capacity ? memoryStream.GetBuffer() : memoryStr… in FromStream()
214 …byte[] bytes = memoryStream.Length == memoryStream.Capacity ? memoryStream.GetBuffer() : memoryStr… in FromStreamAsync()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/dvpp/
Ddvpp_decode_png_op.cc65 CHECK_FAIL_RETURN_UNEXPECTED(input->GetBuffer() != nullptr, "The input image buffer is empty."); in Compute()
66 unsigned char *buffer = const_cast<unsigned char *>(input->GetBuffer()); in Compute()
Ddvpp_decode_resize_crop_jpeg_op.cc66 CHECK_FAIL_RETURN_UNEXPECTED(input->GetBuffer() != nullptr, "The input image buffer is empty."); in Compute()
67 unsigned char *buffer = const_cast<unsigned char *>(input->GetBuffer()); in Compute()
Ddvpp_decode_resize_jpeg_op.cc65 CHECK_FAIL_RETURN_UNEXPECTED(input->GetBuffer() != nullptr, "The input image buffer is empty."); in Compute()
66 unsigned char *buffer = const_cast<unsigned char *>(input->GetBuffer()); in Compute()
Ddvpp_decode_jpeg_op.cc67 CHECK_FAIL_RETURN_UNEXPECTED(input->GetBuffer() != nullptr, "The input image buffer is empty."); in Compute()
68 unsigned char *buffer = const_cast<unsigned char *>(input->GetBuffer()); in Compute()
Ddvpp_resize_jpeg_op.cc70 CHECK_FAIL_RETURN_UNEXPECTED(input->GetBuffer() != nullptr, "The input image buffer is empty."); in Compute()
71 unsigned char *buffer = const_cast<unsigned char *>(input->GetBuffer()); in Compute()
Ddvpp_crop_jpeg_op.cc69 CHECK_FAIL_RETURN_UNEXPECTED(input->GetBuffer() != nullptr, "The input image buffer is empty."); in Compute()
70 unsigned char *buffer = const_cast<unsigned char *>(input->GetBuffer()); in Compute()
/third_party/mindspore/mindspore/lite/src/delegate/npu/
Dnpu_executor.cc84 memcpy(npu_input_tensors_[i]->GetBuffer(), data.get(), in_tensors[i].DataSize()); in Run()
110 memcpy(data, npu_output_tensors_[i]->GetBuffer(), npu_output_tensors_[i]->GetSize()); in Run()
/third_party/openSLES/api/1.0.1/
DOpenSLES_OpenHarmony.h62 SLresult (*GetBuffer) ( member
/third_party/grpc/src/core/lib/slice/
Dslice_intern.cc184 static const char* GetBuffer(const std::pair<const char*, size_t>& buflen) { in GetBuffer() function
190 static const void* GetBuffer(const grpc_slice& slice) { in GetBuffer() function
210 const void* buffer = GetBuffer(args); in InternNewStringLocked()
/third_party/flutter/engine/flutter/fml/
Dmessage.cc35 const uint8_t* Message::GetBuffer() const { in GetBuffer() function in fml::Message
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DNativeSwapChainImplD3D12.cpp82 ASSERT_SUCCESS(mSwapChain->GetBuffer(i, IID_PPV_ARGS(&mBuffers[i]))); in Configure()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/soft_dvpp/
Dsoft_dvpp_decode_resize_jpeg_op.cc34 unsigned char *buffer = const_cast<unsigned char *>(input->GetBuffer()); in Compute()
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DNativeSwapChainImplD3D12.cpp84 ASSERT_SUCCESS(mSwapChain->GetBuffer(i, IID_PPV_ARGS(&mBuffers[i]))); in Configure()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/core/
Dde_tensor.cc93 return std::shared_ptr<const void>(tensor_impl_->GetBuffer(), [](const void *) {}); in Data()

1234