Trait tch::nn::Module

source ·
pub trait Module: Debug + Send {
    // Required method
    fn forward(&self, xs: &Tensor) -> Tensor;
}
Expand description

The simplest module trait, defining a forward function.

Required Methods§

source

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

Implementors§