candle_core

Trait Module

Source
pub trait Module {
    // Required method
    fn forward(&self, xs: &Tensor) -> Result<Tensor>;
}

Required Methods§

Source

fn forward(&self, xs: &Tensor) -> Result<Tensor>

Implementations on Foreign Types§

Source§

impl<M: Module> Module for Option<&M>

Source§

fn forward(&self, xs: &Tensor) -> Result<Tensor>

Implementors§