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

Method TimeEstimate

tensorflow/core/graph/costmodel.cc:227–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227Microseconds CostModel::TimeEstimate(const Node* node) const {
228 int32 count = TotalCount(node);
229 if (count <= min_count_) return kMinTimeEstimate;
230 return std::max(kMinTimeEstimate, TotalTime(node) / std::max(1, count));
231}
232
233void CostModel::CheckInitialized(const Graph& graph) const {
234 for (const Node* n : graph.op_nodes()) {

Callers 3

ComputeAsapMethod · 0.80
ComputeAlapMethod · 0.80
ComputeScheduleMethod · 0.80

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected