Shortcuts

torch.Tensor.uniform_

Tensor.uniform_(from=0, to=1, *, generator=None) Tensor

Fills self tensor with numbers sampled from the continuous uniform distribution:

f(x)=1tofromf(x) = \dfrac{1}{\text{to} - \text{from}}

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