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

Method GetPeakMemoryUsage

tensorflow/core/grappler/costs/virtual_scheduler.cc:1168–1177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1166}
1167
1168const std::unordered_map<string, int64> VirtualScheduler::GetPeakMemoryUsage()
1169 const {
1170 std::unordered_map<string, int64> result;
1171 for (const auto& device : device_) {
1172 const string& name = device.first;
1173 const DeviceState& state = device.second;
1174 result[name] = state.max_memory_usage;
1175 }
1176 return result;
1177}
1178
1179const std::unordered_map<string, int64>
1180VirtualScheduler::GetPersistentMemoryUsage() const {

Callers 2

TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.36
TEST_FFunction · 0.36