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