torch.Tensor.exponential_#
- Tensor.exponential_(lambd=1,*,generator=None)→Tensor#
Fills
selftensor with elements drawn from the PDF (probability density function):Note
In probability theory, exponential distribution is supported on interval [0,) (i.e.,)implying that zero can be sampled from the exponential distribution.However,
torch.Tensor.exponential_()does not sample zero,which means that its actual support is the interval (0,).Note that
torch.distributions.exponential.Exponential()is supported on the interval [0,) and can sample zero.