Trait candle_lora::LinearLayerLike

source ·
pub trait LinearLayerLike: Module + Debug + Saveable + Send + Sync {
    // Required methods
    fn weight(&self) -> &Tensor;
    fn bias(&self) -> Option<&Tensor>;
    fn shape(&self) -> &Shape;
}
Expand description

Any layer that is linear-like.

Required Methods§

source

fn weight(&self) -> &Tensor

source

fn bias(&self) -> Option<&Tensor>

source

fn shape(&self) -> &Shape

Implementations on Foreign Types§

source§

impl LinearLayerLike for Linear

source§

fn weight(&self) -> &Tensor

source§

fn bias(&self) -> Option<&Tensor>

source§

fn shape(&self) -> &Shape

Implementors§