pub trait CrossEntropy {
    type Output;
    // Required method
    fn cross_entropy(&self) -> Self::Output;
}Expand description
A trait for computing the cross-entropy loss of a tensor or array
pub trait CrossEntropy {
    type Output;
    // Required method
    fn cross_entropy(&self) -> Self::Output;
}A trait for computing the cross-entropy loss of a tensor or array