LogSoftMax
Applies the LogSoftmax function to an n-dimensional input Tensor.
LogSoftmax
LogSoftmax is defined as f_i(x) = log(1/a exp(x_i)), where a = sum_j exp(x_j).
f_i(x)
log(1/a exp(x_i))
a
sum_j exp(x_j)