torch.Tensor.uniform_ Tensor.uniform_(from=0, to=1, *, generator=None) → Tensor 使用从连续均匀分布中抽取的数字来填充self张量: $f(x) = \dfrac{1}{\text{to} - \text{from}}$