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
Required Associated Types§
Required Methods§
fn cross_entropy(&self) -> Self::Output
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".