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

Method replaceAsConsumer

caffe2/python/nomnigraph.py:83–84  ·  view source on GitHub ↗
(self, old_consumer, new_consumer)

Source from the content-addressed store, hash-verified

81 C.replaceAllUsesWith(old_tensor, new_tensor)
82
83 def replaceAsConsumer(self, old_consumer, new_consumer):
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)

Callers 1

Calls

no outgoing calls

Tested by 1