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

Method GraphMatcher

tensorflow/tools/graph_transforms/transform_utils.cc:286–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286GraphMatcher::GraphMatcher(const GraphDef& graph_def) {
287 SortByExecutionOrder(graph_def, &graph_def_).IgnoreError();
288 MapNamesToNodes(graph_def_, &node_map_);
289}
290
291Status GraphMatcher::GetOpTypeMatches(const OpTypePattern& pattern,
292 std::vector<NodeMatch>* matches) {

Callers 7

test_conv_layerMethod · 0.80
test_multiple_outputsMethod · 0.80
test_oneof_patternMethod · 0.80
test_ordered_patternMethod · 0.80
_FindLayersToQuantizeFunction · 0.80
_FindFusedBatchNormsFunction · 0.80

Calls 3

SortByExecutionOrderFunction · 0.85
MapNamesToNodesFunction · 0.85
IgnoreErrorMethod · 0.45

Tested by 5

test_conv_layerMethod · 0.64
test_multiple_outputsMethod · 0.64
test_oneof_patternMethod · 0.64
test_ordered_patternMethod · 0.64