LogSoftmax
Content copied to clipboard
Log softmax activation function.
For each batch i
and class j
we have
logsoftmax = logits - log(reduce_sum(exp(logits), axis))
Log softmax activation function.
For each batch i
and class j
we have
logsoftmax = logits - log(reduce_sum(exp(logits), axis))