Rate this Page

torch.autograd.graph.Node.next_functions#

abstract property Node.next_functions: tuple[tuple[Node | None, int], ...]#

Return the edges from this node to its input functions.

Each entry is a (Node, int) pair. The node is None for an input that does not require gradients. The integer is the output index of the input function to which this edge connects.