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.