Python wrappers
Public Python APIs implemented by this engine symbols.Numerically stable log-softmax .
See Also
softmax_op : Probability-domain variant. LogSoftmaxBackward : Autograd node implementing the gradient rule.
Parameters
aTensorImplPtrInput logits.
axisintAxis along which to normalise. Negative values count from the end.
Returns
TensorImplPtrLog-softmax output with the same shape and dtype as a.
Notes
Prefer log_softmax_op followed by nll_loss over
log(softmax_op(...)) followed by nll_loss — the former is
numerically stable for very confident logits, the latter is not.