Spec.add_fwd: def of bendtorch@1.3.0.0 Import: import bendtorch@1.3.0.0/spec.bend as Spec Lines 115-119 of bendtorch@1.3.0.0/spec.bend: https://jend.leeeet.dev/read.txt?path=bendtorch@1.3.0.0/spec.bend&start_line=115&end_line=119 import Base import bendtorch@1.3.0.0/main.bend as T # a + b for a pair of vectors; the backward pass hands dy to both (T.Add2 over vectors) def add_fwd(+p: Unit, x: T.Two, List<&2, Nat>>) -> T.Fwd, Unit>: match x: case T.Two{a, b}: T.Fwd{p, vadd(a, b), Unit{}} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=Fwd https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=Two https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/spec.bend&name=vadd