Shortcuts

torch.Tensor.uniform_

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

用从连续均匀分布中抽取的数字填充 self 张量:

f(x)=1tofromf(x) = \dfrac{1}{\text{to} - \text{from}}
优云智算