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

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)=1toโˆ’fromf(x) = \dfrac{1}{\text{to} - \text{from}}