Trait candle_lora::Conv1dLayerLike

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

Any layer that is conv1d-like.

Required Methods§

source

fn weight(&self) -> &Tensor

source

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

source

fn config(&self) -> &Conv1dConfig

Implementations on Foreign Types§

source§

impl Conv1dLayerLike for Conv1d

source§

fn config(&self) -> &Conv1dConfig

source§

fn weight(&self) -> &Tensor

source§

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

Implementors§