pub trait Norm { type Output; // Required methods fn l1_norm(&self) -> Self::Output; fn l2_norm(&self) -> Self::Output; }
compute the L1 norm of the tensor or array
compute the L2 norm of the tensor or array