Trait engram::nn::Regularization

source ·
pub trait Regularization: Debug {
    // Required methods
    fn loss(&self, tensor: &Tensor) -> f64;
    fn grad(&self, tensor: &Tensor) -> Tensor;
}

Required Methods§

source

fn loss(&self, tensor: &Tensor) -> f64

source

fn grad(&self, tensor: &Tensor) -> Tensor

Implementors§