pytorch / 2 / generated / torch.tensor.exponential_.html

torch.Tensor.exponential_

Tensor.exponential_(lambd=1, *, generator=None) → Tensor

Fills self tensor with elements drawn from the exponential distribution:

f ( x ) = λ e λ x f(x) = \lambda e^{-\lambda x}

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.Tensor.exponential_.html