Rate this Page

torch.distributions.utils.logits_to_probs#

torch.distributions.utils.logits_to_probs(logits, is_binary=False)[source]#

Converts a tensor of logits into probabilities. Note that for the binary case, each value denotes log odds, whereas for the multi-dimensional case, the values along the last dimension denote the log probabilities (possibly unnormalized) of the events.

Return type:

Tensor