def push

bendtorch-core@0.1.0.0 · src/autograd/tensor_backward.bend:1149

import bendtorch-core@0.1.0.0/src/autograd/tensor_backward.bend as TensorBackward
import Base
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core

1149# The new entry's id is the number of entries before it. A recording has at
1150# least one operand; when they are all constants it records a constant, and
1151# otherwise each operand that is a constant freezes the node.
1152def push(node: Node, value: Core.Dynamic, saved: Saved, entries: List<&1, Entry>) -> Tape & Result<&2, &2, Error, Nat>:
1153  done_id(marked(node, value, saved, listed(entries)))

Uses (13)

Used by (7)