def grad
import bendtorch-core@0.1.0.0/src/autograd/tensor_backward.bend as TensorBackwardimport Base
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
1037# A copy of the gradient slot of node id: None until a backward reaches it.
1038def grad(tape: Tape, +id: Nat) -> Tape & Result<&2, &1, Error, Maybe<&1, Core.Dynamic>>:
1039 Tape{entries} = tape
1040 graded_tape(grad_counted(id, counted(entries)))
Uses (10)
Used by (0)
No other definition uses this definition.