Rate this Page

torch.distributions.utils.probs_to_logits#

torch.distributions.utils.probs_to_logits(probs, is_binary=False)[source]#

Converts a tensor of probabilities into logits. For the binary case, this denotes the probability of occurrence of the event indexed by 1. For the multi-dimensional case, the values along the last dimension denote the probabilities of occurrence of each of the events.

Return type:

Tensor