Home
last modified time | relevance | path

Searched refs:HumanReadableNumBytes (Results 1 – 20 of 20) sorted by relevance

/external/tensorflow/tensorflow/core/lib/strings/
Dnumbers_test.cc74 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 …]
Dnumbers.h165 string HumanReadableNumBytes(int64 num_bytes);
Dnumbers.cc459 string HumanReadableNumBytes(int64 num_bytes) { in HumanReadableNumBytes() function
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_rematerialization.cc50 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 …]
Dhlo_memory_scheduler.cc42 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()
Ddevice_memory_allocator.cc41 tensorflow::strings::HumanReadableNumBytes(size), size, device_ordinal); in Allocate()
45 tensorflow::strings::HumanReadableNumBytes(size), size, device_ordinal, in Allocate()
Dhuman_readable_profile_builder.cc30 using tensorflow::strings::HumanReadableNumBytes;
53 HumanReadableNumBytes(op.bytes_accessed / CyclesToSeconds(op.cycles)), in ToString()
57 bytes_per_cycle = StrCat(HumanReadableNumBytes(bpc), "/cycle"); in ToString()
Dbuffer_assignment.cc50 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/
Dbfc_allocator.cc60 << 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 …]
Dbfc_allocator.h152 &dbg, " Size: ", strings::HumanReadableNumBytes(size), in DebugString()
153 " | Requested Size: ", strings::HumanReadableNumBytes(requested_size), in DebugString()
Dstep_stats_collector.cc495 strings::HumanReadableNumBytes(it->first), " from ", in ReportAllocsOnResourceExhausted()
510 strings::HumanReadableNumBytes(remain_bytes), "\n"); in ReportAllocsOnResourceExhausted()
/external/tensorflow/tensorflow/stream_executor/
Ddevice_description.cc84 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/
Dutils.cc360 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()
Dvirtual_scheduler.cc927 << 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/
Dhuman_readable.h28 class HumanReadableNumBytes {
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_device.cc1556 << 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/
Dcudnn_conv_algorithm_picker.cc74 return absl::StrCat(tensorflow::strings::HumanReadableNumBytes(bytes), " (", in NumBytesToString()
Dnvptx_compiler.cc783 << tensorflow::strings::HumanReadableNumBytes( in RunBackend()
/external/tensorflow/tensorflow/stream_executor/rocm/
Drocm_driver.cc660 << port::HumanReadableNumBytes::ToString(bytes) << " (" << bytes in DeviceAllocate()
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_driver.cc836 << port::HumanReadableNumBytes::ToString(bytes) << " (" << bytes in DeviceAllocate()