{ }
View source on GitHub |
Computes log softmax activations. (deprecated arguments)
tf.compat.v1.math.log_softmax(
logits, axis=None, name=None, dim=None
)
For each batch i
and class j
we have
logsoftmax = logits - log(reduce_sum(exp(logits), axis))
Returns | |
---|---|
A Tensor . Has the same type as logits . Same shape as logits .
|
Raises | |
---|---|
InvalidArgumentError
|
if logits is empty or axis is beyond the last
dimension of logits .
|