def Layer.bwd
import bendtorch@1.3.0.0/main.bend as Bendtorchimport Base
127def Layer.bwd(-P: Type, -X: Type, -Y: Type, -S: Type, l: Layer<P, X, Y, S>, p: P, s: S, dy: Y, g: P) -> Bwd<P, X>:
128 match l:
129 case Layer{fwd, bwd, step, zeros, dump, load, store, count}:
130 bwd(p, s, dy, g)