MCPcopy Create free account
hub / github.com/pytorch/executorch / erase_node

Method erase_node

exir/graph.py:37–42  ·  view source on GitHub ↗

Erases a ``Node`` from the ``Graph``. Throws an exception if there are still users of that node in the ``Graph``.

(self, to_erase: fx.Node)

Source from the content-addressed store, hash-verified

35 return self._graph.nodes
36
37 def erase_node(self, to_erase: fx.Node) -> None:
38 """
39 Erases a ``Node`` from the ``Graph``. Throws an exception if
40 there are still users of that node in the ``Graph``.
41 """
42 return self._graph.erase_node(to_erase)
43
44 def inserting_before(self, n: Optional[fx.Node] = None) -> fx.graph._InsertPoint:
45 """

Callers 15

programMethod · 0.80
reinplace_passFunction · 0.80
_fuse_quantized_catFunction · 0.80
erase_constant_nodeFunction · 0.80
weights_to_outputs_passFunction · 0.80
callMethod · 0.80
callMethod · 0.80

Calls

no outgoing calls