def Layer.load

bendtorch@1.3.0.0 · main.bend:148

import bendtorch@1.3.0.0/main.bend as Bendtorch
import Base

148# Parameters overwritten from xs at an element offset, in dump order; xs and the next offset come back.
149def Layer.load(-P: Type, -X: Type, -Y: Type, -S: Type, l: Layer<P, X, Y, S>, p: P, xs: Array<F32>, off: U32) -> PA<P>:
150  match l:
151    case Layer{fwd, bwd, step, zeros, dump, load, store, count}: load(p, xs, off)

Uses (5)

Used by (10)