Shortcuts

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

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources