autograd::ops
pub fn softmax_cross_entropy(y: &Tensor, t: &Tensor) -> Tensor
Computes categorical_cross_entropy(softmax(y), t).
categorical_cross_entropy(softmax(y), t)
This function is better than that combination in that it can prevent underflow of log(softmax).
log(softmax)
y
t
Loss tensor with shape (batch_size, 1)