tf.compat.v1.math.log_softmax

View source on GitHub

Computes log softmax activations. (deprecated arguments)

tf.compat.v1.math.log_softmax(
    logits, axis=None, name=None, dim=None
)

Warning: SOME ARGUMENTS ARE DEPRECATED: (dim). They will be removed in a future version. Instructions for updating: dim is deprecated, use axis instead

For each batch i and class j we have

logsoftmax = logits - log(reduce_sum(exp(logits), axis))

Args:

Returns:

A Tensor. Has the same type as logits. Same shape as logits.

Raises: