Expand description
High level neural network building blocks such as Linear, activations, and tuples as feedforward networks.
Saving and loading model parameters is done using SaveToNpz and LoadFromNpz. All modules provided here implement it,
including tuples. So you can call SaveToNpz::save() to save the module to a .npz
zip file
format, and then LoadFromNpz::load() to load the weights.
Structs
A Moduleself.p
.
A linear transformation of the form xW + b
, where W
is a matrix, x
is a vector or matrix,
and b
is a vector. If x
is a matrix this does matrix multiplication.
Enums
Error that can happen while loading data from a .npz
zip archive.
Traits
Something that can be loaded from a .npz
file (which is a zip
file).
A unit of a neural network. Acts on the generic Input
and produces Module::Output
.
Something that can be saved to a .npz
(which is a .zip
).