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

Method RecordTime

tensorflow/core/graph/costmodel.cc:209–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void CostModel::RecordTime(const Node* node, Microseconds time) {
210 const int id = Id(node);
211 if (id < 0) return;
212 DCHECK(node->IsOp()) << node->DebugString();
213 Ensure(id, node->num_outputs());
214 time_[id] += time;
215}
216
217Microseconds CostModel::TotalTime(const Node* node) const {
218 DCHECK(node->IsOp()) << node->DebugString();

Callers 1

EstimateComputationCostsFunction · 0.80

Calls 3

IsOpMethod · 0.80
DebugStringMethod · 0.45
num_outputsMethod · 0.45

Tested by

no test coverage detected