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

Method CountOpNodes

tensorflow/core/grappler/utils/grappler_test.cc:188–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188int GrapplerTest::CountOpNodes(const GraphDef& graph, const string& op) {
189 return std::count_if(graph.node().begin(), graph.node().end(),
190 [&op](const NodeDef& node) { return node.op() == op; });
191}
192
193} // namespace grappler
194} // namespace tensorflow

Callers

nothing calls this directly

Calls 4

beginMethod · 0.45
nodeMethod · 0.45
endMethod · 0.45
opMethod · 0.45

Tested by

no test coverage detected