pub trait TensorInfExtend { // Required methods fn is_inf(&self) -> Result<Self> where Self: Sized; fn any(&self) -> Result<bool>; }