Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/platform/
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 std::string HumanReadableNumBytes(int64 num_bytes);
Dnumbers.cc475 string HumanReadableNumBytes(int64 num_bytes) { in HumanReadableNumBytes() function
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_memory_scheduler.cc45 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 …]
Dhlo_rematerialization.cc54 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 …]
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.cc54 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/
Ddevice_description.cc85 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()
Dstream_executor_pimpl.cc906 tensorflow::strings::HumanReadableNumBytes(size), size, in Allocate()
911 tensorflow::strings::HumanReadableNumBytes(size), size, device_ordinal, in Allocate()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_virtual_mem_allocator.cc104 << 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()
Dgpu_device.cc1014 << 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/
Dbfc_allocator.cc70 << 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 …]
Dbfc_allocator.h214 &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()
Dstep_stats_collector.cc493 strings::HumanReadableNumBytes(it->first), " from ", in ReportAllocsOnResourceExhausted()
508 strings::HumanReadableNumBytes(remain_bytes), "\n"); in ReportAllocsOnResourceExhausted()
/external/tensorflow/tensorflow/core/grappler/costs/
Dutils.cc360 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()
Dvirtual_scheduler.cc48 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/
Dhuman_readable.h29 class HumanReadableNumBytes {
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dgpu_conv_algorithm_picker.cc160 return absl::StrCat(tensorflow::strings::HumanReadableNumBytes(bytes), " (", in NumBytesToString()
Dgpu_compiler.cc889 << tensorflow::strings::HumanReadableNumBytes( in RunBackend()
/external/tensorflow/tensorflow/stream_executor/rocm/
Drocm_driver.cc608 << port::HumanReadableNumBytes::ToString(bytes) << " (" << bytes in DeviceAllocate()
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_driver.cc790 << port::HumanReadableNumBytes::ToString(bytes) << " (" << bytes in DeviceAllocate()
/external/tensorflow/tensorflow/compiler/xla/service/spmd/
Dspmd_partitioner.cc75 tensorflow::strings::HumanReadableNumBytes(entries_[i].first), " : ", in MakeReport()
160 tensorflow::strings::HumanReadableNumBytes( in ReportMemoryUsage()