def Train.new

bendtorch@1.3.0.0 · main.bend:920

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

920def Train.new(~P: Type, ~X: Type, ~Y: Type, ~S: Type, ~m: Layer<P, X, Y, S>, +cfg: OptCfg, p: P) -> Train<P>:
921  +q = q_start(OptCfg.ok(cfg))
922  Train{p, Layer.zeros(P, X, Y, S, m), OptState.new(~P, ~X, ~Y, ~S, ~m, cfg), q, q, 0.0}

Uses (7)

Used by (0)

No other definition uses this definition.