Rate this Page

torch.Tensor.uniform_#

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

Fillsself tensor with numbers sampled from the continuous uniformdistribution:

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