pub fn cross_entropy_with_logits<B, const D: usize>( logits: Tensor<B, D>, target_probs: Tensor<B, D>, ) -> Tensor<B, 1>where B: Backend,
Computes the log softmax cross entropy between logits and target probabilities.
logits
target_probs
The log softmax cross entropy.