/external/tensorflow/tensorflow/core/lib/strings/ |
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 string HumanReadableNumBytes(int64 num_bytes);
|
D | numbers.cc | 459 string HumanReadableNumBytes(int64 num_bytes) { in HumanReadableNumBytes() function
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | hlo_rematerialization.cc | 50 using ::tensorflow::strings::HumanReadableNumBytes; 753 "Memory usage: ", HumanReadableNumBytes(memory_usage()), " (", in ToString() 952 << HumanReadableNumBytes(peak_memory); in ComputePeakMemory() 975 << " with limit " << HumanReadableNumBytes(memory_limit_bytes); in RematerializeComputation() 977 << HumanReadableNumBytes(computation_peak_memory_.at(computation)); in RematerializeComputation() 1027 << HumanReadableNumBytes(memory_tracker.memory_usage() + in RematerializeComputation() 1029 << ", limit is " << HumanReadableNumBytes(memory_limit_bytes); in RematerializeComputation() 1038 << HumanReadableNumBytes(memory_tracker.memory_usage() + in RematerializeComputation() 1045 << HumanReadableNumBytes( in RematerializeComputation() 1128 << HumanReadableNumBytes(memory_tracker.memory_usage()); in RematerializeComputation() [all …]
|
D | hlo_memory_scheduler.cc | 42 using ::tensorflow::strings::HumanReadableNumBytes; 531 VLOG(2) << "Min-memory list sequence: " << HumanReadableNumBytes(list_memory); in DefaultMemoryScheduler() 540 VLOG(2) << "Min-memory dfs sequence: " << HumanReadableNumBytes(dfs_memory); in DefaultMemoryScheduler() 551 << HumanReadableNumBytes(post_order_memory); in DefaultMemoryScheduler() 557 << HumanReadableNumBytes(list_memory); in DefaultMemoryScheduler() 561 << HumanReadableNumBytes(dfs_memory); in DefaultMemoryScheduler() 565 << HumanReadableNumBytes(post_order_memory); in DefaultMemoryScheduler()
|
D | device_memory_allocator.cc | 41 tensorflow::strings::HumanReadableNumBytes(size), size, device_ordinal); in Allocate() 45 tensorflow::strings::HumanReadableNumBytes(size), size, device_ordinal, in Allocate()
|
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 | 50 using ::tensorflow::strings::HumanReadableNumBytes; 660 HumanReadableNumBytes(parameter_allocation_bytes)); in ToString() 662 HumanReadableNumBytes(constant_allocation_bytes)); in ToString() 664 HumanReadableNumBytes(maybe_live_out_allocation_bytes)); in ToString() 666 HumanReadableNumBytes(preallocated_temp_allocation_bytes)); in ToString() 672 HumanReadableNumBytes(preallocated_temp_fragmentation_bytes), percent); in ToString() 675 HumanReadableNumBytes(total_allocation_bytes)); in ToString() 680 HumanReadableNumBytes(total_fragmentation_bytes), percent); in ToString()
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | bfc_allocator.cc | 60 << strings::HumanReadableNumBytes(bin_size); in BFCAllocator() 136 VLOG(1) << "Extending allocation by " << strings::HumanReadableNumBytes(bytes) in Extend() 141 << strings::HumanReadableNumBytes(total_region_allocated_bytes_); in Extend() 232 << "to allocate " << strings::HumanReadableNumBytes(num_bytes) in AllocateRaw() 289 << "to allocate " << strings::HumanReadableNumBytes(num_bytes) in AllocateRawInternal() 636 << strings::HumanReadableNumBytes(bin_info.total_bytes_in_bin) in DumpMemoryLog() 638 << strings::HumanReadableNumBytes(bin_info.total_bytes_in_use) in DumpMemoryLog() 640 << strings::HumanReadableNumBytes( in DumpMemoryLog() 649 LOG(INFO) << "Bin for " << strings::HumanReadableNumBytes(num_bytes) in DumpMemoryLog() 650 << " was " << strings::HumanReadableNumBytes(b->bin_size) in DumpMemoryLog() [all …]
|
D | bfc_allocator.h | 152 &dbg, " Size: ", strings::HumanReadableNumBytes(size), in DebugString() 153 " | Requested Size: ", strings::HumanReadableNumBytes(requested_size), in DebugString()
|
D | step_stats_collector.cc | 495 strings::HumanReadableNumBytes(it->first), " from ", in ReportAllocsOnResourceExhausted() 510 strings::HumanReadableNumBytes(remain_bytes), "\n"); in ReportAllocsOnResourceExhausted()
|
/external/tensorflow/tensorflow/stream_executor/ |
D | device_description.cc | 84 port::HumanReadableNumBytes::ToString(device_memory_size()); in ToMap() 86 port::HumanReadableNumBytes::ToString(memory_bandwidth_), "/s"); in ToMap() 89 port::HumanReadableNumBytes::ToString(shared_memory_per_core_); in ToMap() 91 port::HumanReadableNumBytes::ToString(shared_memory_per_block_); in ToMap()
|
/external/tensorflow/tensorflow/core/grappler/costs/ |
D | utils.cc | 360 r.append(strings::HumanReadableNumBytes(Average())); in ToString() 362 r.append(strings::HumanReadableNumBytes(min_)); in ToString() 364 r.append(strings::HumanReadableNumBytes(max_)); in ToString() 379 const auto left_string = strings::HumanReadableNumBytes(left); in ToString() 385 const auto right_string = strings::HumanReadableNumBytes(right); in ToString()
|
D | virtual_scheduler.cc | 927 << strings::HumanReadableNumBytes(persistent_memory_usage) in Summary() 929 << strings::HumanReadableNumBytes(state.max_memory_usage) in Summary() 930 << ", total = " << strings::HumanReadableNumBytes(max_memory_usage) in Summary() 932 << strings::HumanReadableNumBytes(state.memory_usage); in Summary() 984 << " (" << strings::HumanReadableNumBytes(op_mem_usage) << " [" in Summary()
|
/external/tensorflow/tensorflow/stream_executor/lib/ |
D | human_readable.h | 28 class HumanReadableNumBytes {
|
/external/tensorflow/tensorflow/core/common_runtime/gpu/ |
D | gpu_device.cc | 1556 << strings::HumanReadableNumBytes(total_bytes) in GetValidDeviceIds() 1557 << " freeMemory: " << strings::HumanReadableNumBytes(free_bytes); in GetValidDeviceIds() 1569 << strings::HumanReadableNumBytes(total_bytes) in GetValidDeviceIds() 1571 << strings::HumanReadableNumBytes(free_bytes); in GetValidDeviceIds()
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | cudnn_conv_algorithm_picker.cc | 74 return absl::StrCat(tensorflow::strings::HumanReadableNumBytes(bytes), " (", in NumBytesToString()
|
D | nvptx_compiler.cc | 783 << tensorflow::strings::HumanReadableNumBytes( in RunBackend()
|
/external/tensorflow/tensorflow/stream_executor/rocm/ |
D | rocm_driver.cc | 660 << port::HumanReadableNumBytes::ToString(bytes) << " (" << bytes in DeviceAllocate()
|
/external/tensorflow/tensorflow/stream_executor/cuda/ |
D | cuda_driver.cc | 836 << port::HumanReadableNumBytes::ToString(bytes) << " (" << bytes in DeviceAllocate()
|