MCPcopy Create free account
hub / github.com/pytorch/pytorch / match

Method match

caffe2/python/nomnigraph.py:103–107  ·  view source on GitHub ↗
(self, pattern)

Source from the content-addressed store, hash-verified

101 return new_proto
102
103 def match(self, pattern):
104 for n in self.dataFlow.getMutableNodes():
105 m = C.matchSubgraph(n, pattern)
106 if m:
107 yield m
108
109
110def render(s):

Callers 14

test_match_graph_nodeMethod · 0.95
test_match_graphMethod · 0.95
test_delete_subgraphMethod · 0.95
test_replace_subraphMethod · 0.95
runMethod · 0.45
cleanup_titleFunction · 0.45
process_docstringFunction · 0.45
_RemoveLegacyPadFunction · 0.45
validModelNameFunction · 0.45
_filter_fake_initMethod · 0.45
_ssa_rewriteMethod · 0.45

Calls

no outgoing calls

Tested by 5

test_match_graph_nodeMethod · 0.76
test_match_graphMethod · 0.76
test_delete_subgraphMethod · 0.76
test_replace_subraphMethod · 0.76