Trait candle_lora::Conv2dLayerLike

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

Any layer that is conv2d-like.

Required Methods§

source

fn weight(&self) -> &Tensor

source

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

source

fn config(&self) -> &Conv2dConfig

Implementations on Foreign Types§

source§

impl Conv2dLayerLike for Conv2d

source§

fn config(&self) -> &Conv2dConfig

source§

fn weight(&self) -> &Tensor

source§

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

Implementors§