def grad
import bendtorch-core@0.1.0.0/src/autograd/backward.bend as Backwardimport Base
276# The gradient slot of node id: None until a backward reaches it.
277def grad(tape: Tape, +id: Nat) -> Result<&2, &2, Error, Maybe<&2, F32>>:
278 Tape{entries} = tape
279 entry_grad(lookup(Entry, entries, id))