Home
last modified time | relevance | path

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

123

/external/llvm-project/compiler-rt/lib/xray/
Dxray_utils.cpp51 auto TotalBytes = std::distance(Begin, End); in WriteAll() local
56 if (RoundUpTo(Offset, PageSize) != RoundUpTo(Offset + TotalBytes, PageSize)) { in WriteAll()
58 zx_status_t Status = _zx_vmo_set_size(Vmo, Offset + TotalBytes); in WriteAll()
66 zx_status_t Status = _zx_vmo_write(Vmo, Begin, Offset, TotalBytes); in WriteAll()
71 Offset += TotalBytes; in WriteAll()
142 auto TotalBytes = std::distance(Begin, End);
143 while (auto Written = write(Fd, Begin, TotalBytes)) {
150 TotalBytes -= Written;
151 if (TotalBytes == 0)
/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.cc87 if (src.TotalBytes() != dst->TotalBytes()) { in PrepareCopy()
88 return errors::Internal("Can't copy ", src.TotalBytes(), in PrepareCopy()
90 dst->TotalBytes(), " bytes buffer."); in PrepareCopy()
92 if ((src.TotalBytes() > 0) && !src.IsInitialized()) { in PrepareCopy()
95 if ((dst->TotalBytes() > 0) && !dst->IsInitialized()) { in PrepareCopy()
148 const int64 total_bytes = is_dead ? 0 : tensor.TotalBytes(); in SetProtoFromGPU()
211 const int64 total_bytes = input->TotalBytes(); in DeviceToDeviceCopy()
278 const int64 total_bytes = gpu_tensor->TotalBytes(); in CopyGPUTensorToCPU()
325 const int64 total_bytes = cpu_tensor->TotalBytes(); in CopyCPUTensorToGPU()
372 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.cc65 int64 recv_bytes = to_tensor->TotalBytes(); in RecvFromPeer()
66 CHECK_EQ(recv_bytes, hook->prod_value->TotalBytes()); in RecvFromPeer()
157 int64 bytes = src->TotalBytes(); in MemCpyAsync()
158 DCHECK_EQ(dst->TotalBytes(), bytes); in MemCpyAsync()
Dsimple_propagator_state.cc130 ", bytes: ", tensor->TotalBytes(), ">"); in DumpState()
131 total_bytes += tensor->TotalBytes(); in DumpState()
/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/llvm-project/compiler-rt/lib/scudo/standalone/
Dquarantine.h136 uptr TotalBytes = 0; in getStats() local
140 TotalBytes += Batch.Size; in getStats()
150 const uptr TotalQuarantinedBytes = TotalBytes - TotalOverheadBytes; in getStats()
158 BatchCount, TotalBytes, TotalQuarantinedBytes, TotalQuarantineChunks, in getStats()
/external/scudo/standalone/
Dquarantine.h136 uptr TotalBytes = 0; in getStats() local
140 TotalBytes += Batch.Size; in getStats()
150 const uptr TotalQuarantinedBytes = TotalBytes - TotalOverheadBytes; in getStats()
158 BatchCount, TotalBytes, TotalQuarantinedBytes, TotalQuarantineChunks, in getStats()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/utils/
Dtrt_engine_utils.h41 size_t TotalBytes() const { return tensor.TotalBytes(); } in TotalBytes() function
/external/tensorflow/tensorflow/core/distributed_runtime/
Dcollective_rma_distributed.cc49 req_.set_num_bytes(to_tensor->TotalBytes()); in RecvBufCall()
114 const int64 total_bytes = to_tensor->TotalBytes(); in RecvFromPeer()
118 to_tensor->TotalBytes())); in RecvFromPeer()
Dtensor_coding_test.cc187 bytes = response.tensor().TotalBytes(); in BM_TensorResponse()
203 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/llvm-project/llvm/lib/Target/AVR/
DAVRISelLowering.cpp923 unsigned TotalBytes = VT.getStoreSize(); in analyzeArguments() local
928 TotalBytes += Args[j].VT.getStoreSize(); in analyzeArguments()
931 TotalBytes = alignTo(TotalBytes, 2); in analyzeArguments()
933 if (TotalBytes == 0) in analyzeArguments()
936 unsigned RegIdx = RegLastIdx + TotalBytes; in analyzeArguments()
974 unsigned TotalBytes = 0; in getTotalArgumentsSizeInBytes() local
977 TotalBytes += Arg.VT.getStoreSize(); in getTotalArgumentsSizeInBytes()
979 return TotalBytes; in getTotalArgumentsSizeInBytes()
989 unsigned TotalBytes = getTotalArgumentsSizeInBytes(Args); in analyzeReturnValues() local
991 assert(TotalBytes <= 8 && "return values greater than 8 bytes cannot be lowered"); in analyzeReturnValues()
[all …]
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_tensor_coding.cc145 if (val.TotalBytes() > kProtoBufLimitBytes) { in EncodeTensorToByteBuffer()
146 size_t exceeded_bytes = val.TotalBytes() - kProtoBufLimitBytes; in EncodeTensorToByteBuffer()
Dgrpc_response_cache.cc76 << "Status: " << status << ", tensor size " << tensor.TotalBytes() in OnRequestFinished()
/external/tensorflow/tensorflow/core/framework/
Dtensor.cc186 static int64 TotalBytes(TensorBuffer* in, int64 n) { in TotalBytes() function
222 static int64 TotalBytes(TensorBuffer* in, int n) { in TotalBytes() function
261 static int64 TotalBytes(TensorBuffer* in, int n) { in TotalBytes() function
293 static int64 TotalBytes(TensorBuffer* in, int n) { in TotalBytes() function
963 size_t Tensor::TotalBytes() const { in TotalBytes() function in tensorflow::Tensor
966 CASES(dtype(), return Helper<T>::TotalBytes(buf_, shape_.num_elements())); in TotalBytes()
977 return TotalBytes(); in AllocatedBytes()
1237 return StringPiece(static_cast<char*>(buf_->data()), TotalBytes()); in tensor_data()
/external/webrtc/video/
Dsend_statistics_proxy.cc202 total_byte_counter_.SetLast(it.second.rtp_stats.transmitted.TotalBytes(), in InitializeBitrateCounters()
207 it.second.rtp_stats.retransmitted.TotalBytes(), ssrc); in InitializeBitrateCounters()
208 fec_byte_counter_.SetLast(it.second.rtp_stats.fec.TotalBytes(), ssrc); in InitializeBitrateCounters()
215 rtx_byte_counter_.SetLast(it.second.rtp_stats.transmitted.TotalBytes(), in InitializeBitrateCounters()
1329 uma_container_->total_byte_counter_.Set(counters.transmitted.TotalBytes(), in DataCountersUpdated()
1334 counters.retransmitted.TotalBytes(), ssrc); in DataCountersUpdated()
1335 uma_container_->fec_byte_counter_.Set(counters.fec.TotalBytes(), ssrc); in DataCountersUpdated()
1342 uma_container_->rtx_byte_counter_.Set(counters.transmitted.TotalBytes(), in DataCountersUpdated()
/external/webrtc/call/
Drampup_tests.cc353 *total_sent += stream.rtp_stats.transmitted.TotalBytes() + in AccumulateStats()
354 stream.rtp_stats.retransmitted.TotalBytes() + in AccumulateStats()
355 stream.rtp_stats.fec.TotalBytes(); in AccumulateStats()
513 flex_fec_bytes += kv.second.rtp_stats.fec.TotalBytes(); in GetFecBytes()
/external/webrtc/modules/rtp_rtcp/source/
Drtp_rtcp_impl2_unittest.cc401 EXPECT_EQ(rtp.transmitted.TotalBytes(), rtp.transmitted.payload_bytes + in TEST_F()
427 EXPECT_EQ(sum.transmitted.TotalBytes(), in TEST_F()
428 rtp.transmitted.TotalBytes() + rtp2.transmitted.TotalBytes()); in TEST_F()
Drtp_rtcp_impl_unittest.cc389 EXPECT_EQ(rtp.transmitted.TotalBytes(), rtp.transmitted.payload_bytes + in TEST_F()
415 EXPECT_EQ(sum.transmitted.TotalBytes(), in TEST_F()
416 rtp.transmitted.TotalBytes() + rtp2.transmitted.TotalBytes()); in TEST_F()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/kernels/
Dtrt_engine_op.cc508 CHECK_EQ(t.TotalBytes(), device_tensor->TotalBytes()); in ExecuteCalibration()
1035 CHECK_EQ(t.TotalBytes(), device_tensor->TotalBytes()); in AllocateCalibrationResources()
1043 std::pair<void*, size_t>(device_address, device_tensor->TotalBytes())); in AllocateCalibrationResources()

123