MCPcopy Index your code
hub / github.com/pytorch/pytorch / append

Method append

torch/fx/node.py:280–288  ·  view source on GitHub ↗

Insert ``x`` after this node in the list of nodes in the graph. Equivalent to ``self.next.prepend(x)`` Args: x (Node): The node to put after this node. Must be a member of the same graph.

(self, x: 'Node')

Source from the content-addressed store, hash-verified

278
279 @compatibility(is_backward_compatible=True)
280 def append(self, x: 'Node') -> None:
281 """
282 Insert ``x`` after this node in the list of nodes in the graph.
283 Equivalent to ``self.next.prepend(x)``
284
285 Args:
286 x (Node): The node to put after this node. Must be a member of the same graph.
287 """
288 self._next.prepend(x)
289
290 def _remove_from_list(self):
291 p, n = self._prev, self._next

Callers 15

setup.pyFile · 0.45
_embed_libiompMethod · 0.45
get_outputsMethod · 0.45
__enter__Method · 0.45
loadMethod · 0.45
_exec_fftFunction · 0.45
meta_index_TensorFunction · 0.45
normalize_source_linesFunction · 0.45

Calls 1

prependMethod · 0.80

Tested by 15

__init__Method · 0.36
collect_resultsFunction · 0.36
__call__Method · 0.36
__call__Method · 0.36
construct_methodFunction · 0.36
__torch_function__Method · 0.36
train_batchMethod · 0.36
do_test_on_masterMethod · 0.36