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

Method inserting_before

exir/graph.py:44–48  ·  view source on GitHub ↗

Sets the point at which we will insert the graph.

(self, n: Optional[fx.Node] = None)

Source from the content-addressed store, hash-verified

42 return self._graph.erase_node(to_erase)
43
44 def inserting_before(self, n: Optional[fx.Node] = None) -> fx.graph._InsertPoint:
45 """
46 Sets the point at which we will insert the graph.
47 """
48 return self._graph.inserting_before(n)
49
50 # pyre-ignore
51 def get_attr(self, qualified_name: str, type_expr: Optional[Any] = None) -> fx.Node:

Callers 15

_fixup_output_nodeFunction · 0.80
duplicate_constant_nodeFunction · 0.80
__call__Method · 0.80
callMethod · 0.80
reinplace_passFunction · 0.80
callMethod · 0.80
to_scratch_op_passFunction · 0.80
quantize_inputFunction · 0.80
_insert_copyFunction · 0.80

Calls

no outgoing calls

Tested by 1

_test_create_deleteFunction · 0.64