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

Method TotalMem

tensorflow/core/common_runtime/memory_planner.cc:228–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228size_t LifetimePolicy::TotalMem() const {
229 size_t total_mem = 0;
230 for (auto bin : bins_) {
231 total_mem += bin->TotalMem();
232 }
233 {
234 std::lock_guard<spin_lock> l(large_bin_lock_);
235 for (auto large_bin : large_bins_) {
236 auto bin_info = large_bin.second;
237 total_mem += bin_info->TotalMem();
238 }
239 }
240 return total_mem;
241}
242
243void LifetimePolicy::Dump() const {
244 // LOG(INFO_DEV) << "LifetimePolicy, start:" << start_

Callers 2

InitMethod · 0.45
BestLifetimePolicyMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected