/external/tensorflow/tensorflow/core/platform/ |
D | numbers_test.cc | 74 TEST(HumanReadableNumBytes, Bytes) { in TEST() argument 75 EXPECT_EQ("0B", HumanReadableNumBytes(0)); in TEST() 76 EXPECT_EQ("4B", HumanReadableNumBytes(4)); in TEST() 77 EXPECT_EQ("1023B", HumanReadableNumBytes(1023)); in TEST() 79 EXPECT_EQ("1.0KiB", HumanReadableNumBytes(1024)); in TEST() 80 EXPECT_EQ("1.0KiB", HumanReadableNumBytes(1025)); in TEST() 81 EXPECT_EQ("1.5KiB", HumanReadableNumBytes(1500)); in TEST() 82 EXPECT_EQ("1.9KiB", HumanReadableNumBytes(1927)); in TEST() 84 EXPECT_EQ("2.0KiB", HumanReadableNumBytes(2048)); in TEST() 85 EXPECT_EQ("1.00MiB", HumanReadableNumBytes(1 << 20)); in TEST() [all …]
|
D | numbers.h | 165 std::string HumanReadableNumBytes(int64 num_bytes);
|
D | numbers.cc | 475 string HumanReadableNumBytes(int64 num_bytes) { in HumanReadableNumBytes() function
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | hlo_memory_scheduler.cc | 45 using ::tensorflow::strings::HumanReadableNumBytes; 601 VLOG(2) << "Min-memory list sequence: " << HumanReadableNumBytes(list_memory); in DefaultMemoryScheduler() 608 VLOG(2) << "Min-memory dfs sequence: " << HumanReadableNumBytes(dfs_memory); in DefaultMemoryScheduler() 617 << HumanReadableNumBytes(post_order_memory); in DefaultMemoryScheduler() 626 << HumanReadableNumBytes(list_memory); in DefaultMemoryScheduler() 630 << HumanReadableNumBytes(dfs_memory); in DefaultMemoryScheduler() 634 << HumanReadableNumBytes(post_order_memory); in DefaultMemoryScheduler() 658 VLOG(2) << "Min-memory list sequence: " << HumanReadableNumBytes(list_memory); in DefaultModuleScheduler() 665 VLOG(2) << "Min-memory dfs sequence: " << HumanReadableNumBytes(dfs_memory); in DefaultModuleScheduler() 674 << HumanReadableNumBytes(post_order_memory); in DefaultModuleScheduler() [all …]
|
D | hlo_rematerialization.cc | 54 using ::tensorflow::strings::HumanReadableNumBytes; 1214 "Memory usage: ", HumanReadableNumBytes(memory_usage()), " (", in ToString() 1678 << HumanReadableNumBytes(total_memory_saved) << ")"; in RematerializeInstructions() 1687 << HumanReadableNumBytes(memory_tracker->MemoryReducedIfCompressed( in CompressInstruction() 1774 << HumanReadableNumBytes(memory_tracker->MemoryReducedIfCompressed( in RematerializeBestBlock() 1811 << HumanReadableNumBytes(peak_memory); in ComputePeakMemory() 1834 << " with limit " << HumanReadableNumBytes(memory_limit_bytes); in RematerializeComputation() 1836 << HumanReadableNumBytes(computation_peak_memory_.at(computation)); in RematerializeComputation() 1898 << HumanReadableNumBytes(memory_tracker.memory_usage() + in RematerializeComputation() 1900 << ", limit is " << HumanReadableNumBytes(memory_limit_bytes); in RematerializeComputation() [all …]
|
D | human_readable_profile_builder.cc | 30 using tensorflow::strings::HumanReadableNumBytes; 53 HumanReadableNumBytes(op.bytes_accessed / CyclesToSeconds(op.cycles)), in ToString() 57 bytes_per_cycle = StrCat(HumanReadableNumBytes(bpc), "/cycle"); in ToString()
|
D | buffer_assignment.cc | 54 using ::tensorflow::strings::HumanReadableNumBytes; 752 HumanReadableNumBytes(parameter_allocation_bytes)); in ToString() 754 HumanReadableNumBytes(constant_allocation_bytes)); in ToString() 756 HumanReadableNumBytes(maybe_live_out_allocation_bytes)); in ToString() 758 HumanReadableNumBytes(preallocated_temp_allocation_bytes)); in ToString() 764 HumanReadableNumBytes(preallocated_temp_fragmentation_bytes), percent); in ToString() 767 HumanReadableNumBytes(total_allocation_bytes)); in ToString() 772 HumanReadableNumBytes(total_fragmentation_bytes), percent); in ToString()
|
/external/tensorflow/tensorflow/stream_executor/ |
D | device_description.cc | 85 port::HumanReadableNumBytes::ToString(device_memory_size()); in ToMap() 87 port::HumanReadableNumBytes::ToString(memory_bandwidth_), "/s"); in ToMap() 90 port::HumanReadableNumBytes::ToString(shared_memory_per_core_); in ToMap() 92 port::HumanReadableNumBytes::ToString(shared_memory_per_block_); in ToMap()
|
D | stream_executor_pimpl.cc | 906 tensorflow::strings::HumanReadableNumBytes(size), size, in Allocate() 911 tensorflow::strings::HumanReadableNumBytes(size), size, device_ordinal, in Allocate()
|
/external/tensorflow/tensorflow/core/common_runtime/gpu/ |
D | gpu_virtual_mem_allocator.cc | 104 << strings::HumanReadableNumBytes(vmem.size_bytes) << " bytes"; in Create() 144 << strings::HumanReadableNumBytes(num_bytes) in Alloc() 197 << strings::HumanReadableNumBytes(num_bytes) << " but expected " in Free() 198 << strings::HumanReadableNumBytes(mapping_it->physical.bytes); in Free()
|
D | gpu_device.cc | 1014 << strings::HumanReadableNumBytes(allocated_memory) in SingleVirtualDeviceMemoryLimit() 1018 << strings::HumanReadableNumBytes( in SingleVirtualDeviceMemoryLimit() 1021 << strings::HumanReadableNumBytes(available_memory) in SingleVirtualDeviceMemoryLimit() 1777 << strings::HumanReadableNumBytes( in GetValidDeviceIds() 1780 << strings::HumanReadableNumBytes(description->memory_bandwidth()) in GetValidDeviceIds() 1791 << strings::HumanReadableNumBytes( in GetValidDeviceIds() 1794 << strings::HumanReadableNumBytes(description->memory_bandwidth()) in GetValidDeviceIds()
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | bfc_allocator.cc | 70 << strings::HumanReadableNumBytes(bin_size); in BFCAllocator() 154 << strings::HumanReadableNumBytes(bytes_received) << " bytes."; in Extend() 158 << strings::HumanReadableNumBytes(total_region_allocated_bytes_); in Extend() 273 << "to allocate " << strings::HumanReadableNumBytes(num_bytes) in AllocateRaw() 458 << "to allocate " << strings::HumanReadableNumBytes(num_bytes) in AllocateRawInternal() 998 << strings::HumanReadableNumBytes(bin_info.total_bytes_in_bin) in DumpMemoryLog() 1000 << strings::HumanReadableNumBytes(bin_info.total_bytes_in_use) in DumpMemoryLog() 1002 << strings::HumanReadableNumBytes( in DumpMemoryLog() 1011 LOG(INFO) << "Bin for " << strings::HumanReadableNumBytes(num_bytes) in DumpMemoryLog() 1012 << " was " << strings::HumanReadableNumBytes(b->bin_size) in DumpMemoryLog() [all …]
|
D | bfc_allocator.h | 214 &dbg, " Size: ", strings::HumanReadableNumBytes(size), in DebugString() 215 " | Requested Size: ", strings::HumanReadableNumBytes(requested_size), in DebugString() 379 << strings::HumanReadableNumBytes( in AddOrExtendAllocationRegion() 381 << " by " << strings::HumanReadableNumBytes(memory_size) in AddOrExtendAllocationRegion() 389 << strings::HumanReadableNumBytes(memory_size); in AddOrExtendAllocationRegion()
|
D | step_stats_collector.cc | 493 strings::HumanReadableNumBytes(it->first), " from ", in ReportAllocsOnResourceExhausted() 508 strings::HumanReadableNumBytes(remain_bytes), "\n"); in ReportAllocsOnResourceExhausted()
|
/external/tensorflow/tensorflow/core/grappler/costs/ |
D | utils.cc | 360 num_elem_, strings::HumanReadableNumBytes(Average()), in ToString() 361 strings::HumanReadableNumBytes(min_), in ToString() 362 strings::HumanReadableNumBytes(max_)); in ToString() 372 strings::HumanReadableNumBytes(left), in ToString() 373 strings::HumanReadableNumBytes(right), in ToString()
|
D | virtual_scheduler.cc | 48 using ::tensorflow::strings::HumanReadableNumBytes; 1082 << "persistent = " << HumanReadableNumBytes(persistent_memory_usage) in Summary() 1083 << ", peak = " << HumanReadableNumBytes(state.max_memory_usage) in Summary() 1084 << ", total = " << HumanReadableNumBytes(max_memory_usage) in Summary() 1085 << ", at the end: " << HumanReadableNumBytes(state.memory_usage); in Summary() 1153 << " (" << HumanReadableNumBytes(op_mem_usage) << " [" in Summary()
|
/external/tensorflow/tensorflow/stream_executor/lib/ |
D | human_readable.h | 29 class HumanReadableNumBytes {
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | gpu_conv_algorithm_picker.cc | 160 return absl::StrCat(tensorflow::strings::HumanReadableNumBytes(bytes), " (", in NumBytesToString()
|
D | gpu_compiler.cc | 889 << tensorflow::strings::HumanReadableNumBytes( in RunBackend()
|
/external/tensorflow/tensorflow/stream_executor/rocm/ |
D | rocm_driver.cc | 608 << port::HumanReadableNumBytes::ToString(bytes) << " (" << bytes in DeviceAllocate()
|
/external/tensorflow/tensorflow/stream_executor/cuda/ |
D | cuda_driver.cc | 790 << port::HumanReadableNumBytes::ToString(bytes) << " (" << bytes in DeviceAllocate()
|
/external/tensorflow/tensorflow/compiler/xla/service/spmd/ |
D | spmd_partitioner.cc | 75 tensorflow::strings::HumanReadableNumBytes(entries_[i].first), " : ", in MakeReport() 160 tensorflow::strings::HumanReadableNumBytes( in ReportMemoryUsage()
|