Spec.lin_bwd: def of bendtorch@1.3.0.0 Import: import bendtorch@1.3.0.0/spec.bend as Spec Lines 94-96 of bendtorch@1.3.0.0/spec.bend: https://jend.leeeet.dev/read.txt?path=bendtorch@1.3.0.0/spec.bend&start_line=94&end_line=96 import Base import bendtorch@1.3.0.0/main.bend as T # dx = Wᵀ·dy, and dW += dy ⊗ x def lin_bwd(+w: List<&2, List<&2, Nat>>, +x: List<&2, Nat>, +dy: List<&2, Nat>, g: List<&2, List<&2, Nat>>) -> T.Bwd>, List<&2, Nat>>: T.Bwd{w, mtv(w, dy), madd(g, outer(dy, x))} 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=bendtorch@1.3.0.0/main.bend&name=Bwd https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/spec.bend&name=madd https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/spec.bend&name=mtv https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/spec.bend&name=outer