/third_party/mindspore/tests/ut/cpp/dataset/ |
D | duplicate_op_test.cc | 46 ASSERT_TRUE(t->GetBuffer() == out[0]->GetBuffer()); in TEST_F() 47 ASSERT_TRUE(t->GetBuffer() != out[1]->GetBuffer()); in TEST_F()
|
D | tensor_test.cc | 116 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 …]
|
D | tensor_string_test.cc | 77 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()
|
D | data_helper_test.cc | 160 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/ |
D | lite_image_utils.cc | 36 …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/ |
D | IndirectDrawValidationEncoder.cpp | 293 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()
|
D | ScratchBuffer.h | 45 BufferBase* GetBuffer() const;
|
D | ScratchBuffer.cpp | 42 BufferBase* ScratchBuffer::GetBuffer() const { in GetBuffer() function in dawn_native::ScratchBuffer
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/consumers/ |
D | tree_consumer.cc | 433 …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/ |
D | plugin_op.cc | 45 …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/ |
D | ByteString.cs | 188 …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/ |
D | dvpp_decode_png_op.cc | 65 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()
|
D | dvpp_decode_resize_crop_jpeg_op.cc | 66 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()
|
D | dvpp_decode_resize_jpeg_op.cc | 65 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()
|
D | dvpp_decode_jpeg_op.cc | 67 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()
|
D | dvpp_resize_jpeg_op.cc | 70 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()
|
D | dvpp_crop_jpeg_op.cc | 69 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/ |
D | npu_executor.cc | 84 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/ |
D | OpenSLES_OpenHarmony.h | 62 SLresult (*GetBuffer) ( member
|
/third_party/grpc/src/core/lib/slice/ |
D | slice_intern.cc | 184 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/ |
D | message.cc | 35 const uint8_t* Message::GetBuffer() const { in GetBuffer() function in fml::Message
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | NativeSwapChainImplD3D12.cpp | 82 ASSERT_SUCCESS(mSwapChain->GetBuffer(i, IID_PPV_ARGS(&mBuffers[i]))); in Configure()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/soft_dvpp/ |
D | soft_dvpp_decode_resize_jpeg_op.cc | 34 unsigned char *buffer = const_cast<unsigned char *>(input->GetBuffer()); in Compute()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | NativeSwapChainImplD3D12.cpp | 84 ASSERT_SUCCESS(mSwapChain->GetBuffer(i, IID_PPV_ARGS(&mBuffers[i]))); in Configure()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/core/ |
D | de_tensor.cc | 93 return std::shared_ptr<const void>(tensor_impl_->GetBuffer(), [](const void *) {}); in Data()
|