Shortcuts

torch.Tensor.uniform_

Tensor.uniform_(from=0, to=1) Tensor

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

P(x)=1tofromP(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