Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
110
def
render(s):
Callers
14
test_match_graph_node
Method · 0.95
test_match_graph_node_strict
Method · 0.95
test_match_graph
Method · 0.95
test_delete_subgraph
Method · 0.95
test_replace_subraph
Method · 0.95
run
Method · 0.45
cleanup_title
Function · 0.45
process_docstring
Function · 0.45
_RemoveLegacyPad
Function · 0.45
validModelName
Function · 0.45
_filter_fake_init
Method · 0.45
_ssa_rewrite
Method · 0.45
Calls
no outgoing calls
Tested by
5
test_match_graph_node
Method · 0.76
test_match_graph_node_strict
Method · 0.76
test_match_graph
Method · 0.76
test_delete_subgraph
Method · 0.76
test_replace_subraph
Method · 0.76