MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetStats

Method GetStats

tensorflow/core/common_runtime/gpu/gpu_vmem_allocator.cc:109–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109absl::optional<AllocatorStats> GPUVMemAllocator::GetStats() {
110 absl::optional<AllocatorStats> stats = device_allocator_->GetStats();
111 absl::optional<AllocatorStats> allocator_stats = host_allocator_->GetStats();
112 stats->peak_bytes_in_use += (allocator_stats ? allocator_stats->peak_bytes_in_use : 0);
113 return stats;
114}
115
116void GPUVMemAllocator::ClearStats() {
117 device_allocator_->ClearStats();

Callers 7

AllocateRawMethod · 0.95
gpu_device.ccFile · 0.45
CheckStatsFunction · 0.45
TESTFunction · 0.45
CheckStatsFunction · 0.45
CheckStatsFunction · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 5

CheckStatsFunction · 0.36
TESTFunction · 0.36
CheckStatsFunction · 0.36
CheckStatsFunction · 0.36
TESTFunction · 0.36