Bendtorch.Residual: def of bendtorch@1.3.0.0 Import: import bendtorch@1.3.0.0/main.bend as Bendtorch Lines 2256-2257 of bendtorch@1.3.0.0/main.bend: https://jend.leeeet.dev/read.txt?path=bendtorch@1.3.0.0/main.bend&start_line=2256&end_line=2257 import Base import bend-ml-tensor-array@0.1.18.0/main.bend as TA def Residual(~n: Nat, ~c: Nat, ~P: Type, ~S: Type, ~f: Layer, TA.Mat, S>) -> Layer, Unit>, TA.Mat, TA.Mat, Two, Unit>>: ResidualOf(~TA.Mat, ~P, ~S, ~(m => Mat.dup(n, c, m)), ~(a => b => Mat.sum2(n, c, a, b)), ~Add2(n, c), ~f) Uses (9): 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=bend-ml-tensor-array@0.1.19.0/main.bend&name=Mat https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=Add2 https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=Layer https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=Mat.dup https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=Mat.sum2 https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=ResidualOf https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/main.bend&name=Two