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

Class CompareByTime

tensorflow/python/grappler/cost_analyzer.cc:133–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 ops_.push_back(op.second);
132 }
133 struct CompareByTime {
134 bool operator()(const OpPerfSummary& a, const OpPerfSummary& b) const {
135 return a.time > b.time;
136 }
137 };
138 std::stable_sort(ops_.begin(), ops_.end(), CompareByTime());
139}
140

Callers 1

SortOpsByTimeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected