Rate this Page
โ˜… โ˜… โ˜… โ˜… โ˜…

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+ฯƒ2f(x) = \dfrac{1}{\pi} \dfrac{\sigma}{(x - \text{median})^2 + \sigma^2}

Note

Sigma (ฯƒ\sigma) is used to denote the scale parameter in Cauchy distribution.