torch.sparse.log_softmax — PyTorch 2.7 documentation (original) (raw)

torch.sparse.log_softmax(input, dim, *, dtype=None) → Tensor

Applies a softmax function followed by logarithm.

See softmax for more details.

Parameters