Trait candle_lora::EmbeddingLayerLike

source ·
pub trait EmbeddingLayerLike: Module + Debug + Saveable + Send + Sync {
    // Required methods
    fn embeddings(&self) -> &Tensor;
    fn hidden_size(&self) -> usize;
}
Expand description

Any layer that is embedding-like.

Required Methods§

source

fn embeddings(&self) -> &Tensor

source

fn hidden_size(&self) -> usize

Implementations on Foreign Types§

source§

impl EmbeddingLayerLike for Embedding

source§

fn embeddings(&self) -> &Tensor

source§

fn hidden_size(&self) -> usize

Implementors§