Module candle_nn::var_builder

source ·
Expand description

A VarBuilder is used to retrieve variables used by a model. These variables can either come from a pre-trained checkpoint, e.g. using VarBuilder::from_mmaped_safetensors, or initialized for training, e.g. using VarBuilder::from_varmap.

Structs§

Traits§

  • A trait that defines how tensor data is retrieved.
  • This traits specifies a way to rename the queried names into names that are stored in an inner VarBuilder.

Type Aliases§