def weights

bendtorch-load@1.3.0.0 · main.bend:181

import bendtorch-load@1.3.0.0/main.bend as BendtorchLoad
import Base
import bendtorch@1.3.0.0/main.bend as T

181# All parameters in Layer.dump order. The source array is released after the model's arrays are filled.
182def weights(~P: Type, ~X: Type, ~Y: Type, ~S: Type, ~m: T.Layer<P, X, Y, S>, +path: String, p: P) -> IO(P):
183  do IO<P>:
184    +n : U32 = T.Layer.count(P, X, Y, S, m)
185    a : Array<F32> <- read(path, n)
186    weights_done(P, n, T.Layer.load(P, X, Y, S, m, p, a, 0))

Uses (11)

Used by (0)

No other definition uses this definition.