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

torch.Tensor.cauchy_

Tensor.cauchy_(median=0, sigma=1, *, generator=None) → Tensor

Fills the tensor with numbers drawn from the Cauchy distribution:

f ( x ) = 1 π σ ( x median ) 2 + σ 2 f(x) = \dfrac{1}{\pi} \dfrac{\sigma}{(x - \text{median})^2 + \sigma^2}

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