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

Method Finalize

tensorflow/core/common_runtime/step_stats_collector.cc:204–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void NodeExecStatsWrapper::Finalize() {
205 for (auto& alloc : allocations_) {
206 AllocatorMemoryUsed* memory = alloc.first;
207 for (auto& record : alloc.second->GetRecordsAndUnRef()) {
208 auto* r = memory->add_allocation_records();
209 r->set_alloc_bytes(record.alloc_bytes);
210 r->set_alloc_micros(record.alloc_micros);
211 }
212 }
213 allocations_.clear();
214}
215
216StepStatsCollector::StepStatsCollector(StepStats* step_stats)
217 : finalized_(false), step_stats_(step_stats) {}

Callers 15

GetCollectiveGatherMethod · 0.45
CreatePivotNodesMethod · 0.45
AddInputMethod · 0.45
AddOutputsMethod · 0.45
TESTFunction · 0.45
CreatePivotNodesMethod · 0.45
AddInputMethod · 0.45
AddOutputsMethod · 0.45
BuildLoweredIfOutputMethod · 0.45

Calls 2

GetRecordsAndUnRefMethod · 0.80
clearMethod · 0.45

Tested by 15

GetCollectiveGatherMethod · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
GetAddFunction · 0.36
GetDivFunction · 0.36
GetCollectiveReduceMethod · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TestStridedSliceMethod · 0.36
TEST_FFunction · 0.36