diffusion_rs_common

Module nn

source
Expand description

candle-nn

§Other Crates

Candle consists of a number of crates. This crate holds structs and functions that allow you to build and train neural nets. You may wish to look at the docs for the other crates which can be found here:

Re-exports§

Modules§

  • Activation Functions
  • Batch Normalization.
  • Convolution Layers.
  • Embedding Layer.
  • Encoding Utilities. (e.g., one-hot/cold encoding)
  • Layers defined by closures.
  • Group Normalization.
  • Variable initialization.
  • Cache Implementations
  • Layer Normalization.
  • Linear layer
  • Loss Calculations
  • Tensor ops.
  • Various optimization algorithms.
  • Recurrent Neural Networks
  • Rotary Embeddings
  • Sequential Layer
  • 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.