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

Function EstimateComputationCosts

tensorflow/core/graph/costmodel.cc:454–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452}
453
454static void EstimateComputationCosts(const Graph& g, CostModel* cost_model) {
455 for (Node* n : g.nodes()) {
456 if (!n->IsOp()) continue;
457 cost_model->RecordTime(n, TimeEstimateForNode(cost_model, n));
458 }
459}
460
461} // namespace
462

Callers 1

InitFromGraphMethod · 0.85

Calls 4

TimeEstimateForNodeFunction · 0.85
IsOpMethod · 0.80
RecordTimeMethod · 0.80
nodesMethod · 0.45

Tested by

no test coverage detected