Home
last modified time | relevance | path

Searched refs:TotalBytes (Results 1 – 25 of 59) sorted by relevance

123

/external/ltp/testcases/kernel/io/disktest/
Ddump.c43 static size_t TotalBytes = 0; in format_str() local
48 TotalBytes = 0; in format_str()
56 sprintf(buff, "%08lX", (long)TotalBytes); in format_str()
79 TotalBytes += iBytes; in format_str()
87 static size_t TotalBytes = 0; in format_raw() local
91 TotalBytes = 0; in format_raw()
99 sprintf(buff, "%08lX ", (long)TotalBytes); in format_raw()
105 TotalBytes += iBytes; in format_raw()
179 OFF_T TargetLBA, TotalBytes = 0; in do_dump() local
215 TotalBytes += (OFF_T) NumBytes; in do_dump()
[all …]
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_util.cc89 if (src.TotalBytes() != dst->TotalBytes()) { in PrepareCopy()
90 return errors::Internal("Can't copy ", src.TotalBytes(), in PrepareCopy()
92 dst->TotalBytes(), " bytes buffer."); in PrepareCopy()
94 if ((src.TotalBytes() > 0) && !src.IsInitialized()) { in PrepareCopy()
97 if ((dst->TotalBytes() > 0) && !dst->IsInitialized()) { in PrepareCopy()
150 const int64 total_bytes = is_dead ? 0 : tensor.TotalBytes(); in SetProtoFromGPU()
212 const int64 total_bytes = input->TotalBytes(); in DeviceToDeviceCopy()
279 const int64 total_bytes = gpu_tensor->TotalBytes(); in CopyGPUTensorToCPU()
324 const int64 total_bytes = cpu_tensor->TotalBytes(); in CopyCPUTensorToGPU()
371 FLAGS_brain_gpu_util_debug_string_maxlen, tensor->TotalBytes()); in MemoryDebugString()
[all …]
Dgpu_util.h75 return se::DeviceMemory<T>(se::DeviceMemoryBase(ptr, t.TotalBytes())); in AsDeviceMemory()
/external/tensorflow/tensorflow/core/common_runtime/
Dcollective_rma_local.cc48 int64 recv_bytes = to_tensor->TotalBytes(); in RecvFromPeer()
49 CHECK_EQ(recv_bytes, hook->prod_value->TotalBytes()); in RecvFromPeer()
122 int64 bytes = src->TotalBytes(); in MemCpyAsync()
123 DCHECK_EQ(dst->TotalBytes(), bytes); in MemCpyAsync()
/external/tensorflow/tensorflow/core/util/
Dmemmapped_file_system_test.cc87 ASSERT_GE(memory_region->length(), test_tensor.TotalBytes()); in TEST()
90 test_tensor.TotalBytes())); in TEST()
94 EXPECT_EQ(test_tensor.TotalBytes(), file_size); in TEST()
99 EXPECT_EQ(test_tensor.TotalBytes(), stat.length); in TEST()
Dstream_executor_util.h35 return se::DeviceMemory<T>(se::DeviceMemoryBase(ptr, t.TotalBytes())); in AsDeviceMemory()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dcollective_rma_distributed.cc47 req_.set_num_bytes(to_tensor->TotalBytes()); in RecvBufCall()
111 if (num_bytes != to_tensor->TotalBytes()) { in RecvFromPeer()
114 to_tensor->TotalBytes())); in RecvFromPeer()
Dtensor_coding_test.cc188 strings::StrCat("Bytes: ", response.tensor().TotalBytes())); in BM_TensorResponse()
204 testing::SetLabel(strings::StrCat("Bytes: ", t.TotalBytes())); in BM_TensorViaTensorProto()
/external/tensorflow/tensorflow/cc/framework/
Dops.cc104 std::copy_n(elem.tensor_data().data(), elem.TotalBytes(), in Initializer()
106 offset += elem.TotalBytes(); in Initializer()
/external/tensorflow/tensorflow/core/kernels/hexagon/
Dhexagon_graph_execution_test.cc190 CHECK_EQ(img_tensor.TotalBytes(), img_floats.size() * sizeof(float)); in BuildImageTensor()
193 img_tensor.TotalBytes()); in BuildImageTensor()
202 CHECK_EQ(img_tensor.TotalBytes(), quantized_img.size() * sizeof(quint8)); in BuildQuantizedImageTensor()
205 img_tensor.TotalBytes()); in BuildQuantizedImageTensor()
315 LOG(INFO) << "Output byte size = " << output_tensor.TotalBytes(); in RunFusedGraph()
318 output_tensor.TotalBytes(), in RunFusedGraph()
Dhexagon_control_wrapper.cc373 CHECK(output_tensor->TotalBytes() >= std::get<1>(output)) in ReadOutputNode()
374 << output_tensor->TotalBytes() << ", " << std::get<1>(output); in ReadOutputNode()
419 << ", byte syze = " << tensor.TotalBytes(); in FillInputNode()
/external/tensorflow/tensorflow/contrib/verbs/
Drdma.cc918 if (in.TotalBytes() == 0) { in Checksum()
945 if ((in.TotalBytes() == 8) && (in.dtype() == DT_INT64)) { in ValidateChecksum()
953 << in.shape().DebugString() << " (0x" << in.TotalBytes() in ValidateChecksum()
1076 if ((in.TotalBytes() > 0) && !meta_data_changed_ && in RecvHandler()
1078 (void*)DMAHelper::base(&in), in.TotalBytes()) != nullptr)) { in RecvHandler()
1092 (void*)DMAHelper::base(&copy), in.TotalBytes(), true); in RecvHandler()
1147 if (can_memcpy && (in.TotalBytes() > 0)) { in Clone()
1153 memcpy(DMAHelper::base(tensor_), DMAHelper::base(&in), in.TotalBytes()); in Clone()
1168 size_t tensor_bytes = (can_memcpy) ? in.TotalBytes() : proto.ByteSize(); in SendMetaData()
1199 size_t tensor_bytes = (can_memcpy) ? in.TotalBytes() : proto.ByteSize(); in SendContent()
[all …]
/external/webrtc/webrtc/video/
Dvie_channel.cc247 static_cast<int>(rtp_rtx.transmitted.TotalBytes() * 8 / elapsed_sec / in UpdateHistograms()
258 static_cast<int>(rtp_rtx.retransmitted.TotalBytes() * 8 / in UpdateHistograms()
263 static_cast<int>(rtx.transmitted.TotalBytes() * 8 / elapsed_sec / in UpdateHistograms()
274 static_cast<int>(rtp_rtx.fec.TotalBytes() * 8 / elapsed_sec / in UpdateHistograms()
310 static_cast<int>(rtp_rtx.transmitted.TotalBytes() * 8 / elapsed_sec / in UpdateHistograms()
321 static_cast<int>(rtp_rtx.retransmitted.TotalBytes() * 8 / in UpdateHistograms()
327 static_cast<int>(rtx.transmitted.TotalBytes() * 8 / elapsed_sec / in UpdateHistograms()
333 static_cast<int>(rtp_rtx.fec.TotalBytes() * 8 / elapsed_sec / in UpdateHistograms()
/external/tensorflow/tensorflow/contrib/mpi/
Dmpi_rendezvous_mgr.cc126 const size_t nBytes = tr.tensor().TotalBytes(); in RecvFromRemoteAsync()
182 const int tensor_size = static_cast<int>(val.TotalBytes()); in AddRequest()
226 if (val.TotalBytes() < 1024) doOptimalTransfer = false; in AddRequest()
/external/tensorflow/tensorflow/core/common_runtime/sycl/
Dsycl_device_context.cc29 const int64 total_bytes = cpu_tensor->TotalBytes(); in CopyCPUTensorToDevice()
107 const int64 total_bytes = device_tensor->TotalBytes(); in CopyDeviceTensorToCPU()
Dsycl_util.h35 const size_t size = src_tensor.TotalBytes(); in SYCLmemcpy()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/kernels/
Dtrt_engine_op.cc318 CHECK_EQ(t.TotalBytes(), device_tensor->TotalBytes()); in ExecuteCalibration()
672 CHECK_EQ(t.TotalBytes(), device_tensor->TotalBytes()); in AllocateCalibrationResources()
680 std::pair<void*, size_t>(device_address, device_tensor->TotalBytes())); in AllocateCalibrationResources()
/external/tensorflow/tensorflow/core/framework/
Dtensor.cc160 static int64 TotalBytes(TensorBuffer* in, int64 n) { in TotalBytes() function
196 static int64 TotalBytes(TensorBuffer* in, int n) { in TotalBytes() function
235 static int64 TotalBytes(TensorBuffer* in, int n) { in TotalBytes() function
267 static int64 TotalBytes(TensorBuffer* in, int n) { in TotalBytes() function
909 size_t Tensor::TotalBytes() const { in TotalBytes() function in tensorflow::Tensor
912 CASES(dtype(), return Helper<T>::TotalBytes(buf_, shape_.num_elements())); in TotalBytes()
924 return TotalBytes(); in AllocatedBytes()
1178 return StringPiece(static_cast<char*>(buf_->data()), TotalBytes()); in tensor_data()
Dtensor_reference.h42 size_t TotalBytes() const { in TotalBytes() function
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Drtp_rtcp_impl_unittest.cc421 EXPECT_EQ(rtp.transmitted.TotalBytes(), rtp.transmitted.payload_bytes + in TEST_F()
447 EXPECT_EQ(sum.transmitted.TotalBytes(), in TEST_F()
448 rtp.transmitted.TotalBytes() + rtp2.transmitted.TotalBytes()); in TEST_F()
/external/webrtc/webrtc/call/
Drampup_tests.cc258 *total_sent += stream.rtp_stats.transmitted.TotalBytes() + in AccumulateStats()
259 stream.rtp_stats.retransmitted.TotalBytes() + in AccumulateStats()
260 stream.rtp_stats.fec.TotalBytes(); in AccumulateStats()
/external/tensorflow/tensorflow/core/nccl/
Dnccl_manager_test.cc130 in_cpu.TotalBytes()); in MakeReductionTestCase()
171 in_cpu.TotalBytes()); in MakeGatherTestCase()
200 out_cpu.TotalBytes()); in VerifyResults()
/external/tensorflow/tensorflow/contrib/util/
Dconvert_graphdef_memmapped_format_lib.cc73 if (parsed.TotalBytes() < static_cast<size_t>(min_conversion_size_bytes)) { in ConvertConstantsToImmutable()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dliteral_util.cc92 size_t total_bytes = host_tensor->TotalBytes(); in CopyLiteralToHostTensor()
/external/tensorflow/tensorflow/core/graph/
Dcostmodel.h96 Bytes TotalBytes(const Node* node, int output_slot) const;

123