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

Method replaceSubgraph

caffe2/python/nomnigraph.py:86–87  ·  view source on GitHub ↗
(self, subgraph, new_node, inputs, outputs)

Source from the content-addressed store, hash-verified

84 C.replaceAsConsumer(old_consumer, new_consumer)
85
86 def replaceSubgraph(self, subgraph, new_node, inputs, outputs):
87 self._NNModule.replaceSubgraph(subgraph, new_node, inputs, outputs)
88
89 def deleteSubgraph(self, subgraph):
90 self._NNModule.deleteSubgraph(subgraph)

Callers 1

test_replace_subraphMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_replace_subraphMethod · 0.76