torch.Tensor.uniform_¶ Tensor.uniform_(from=0, to=1, *, generator=None) → Tensor¶ 用从连续均匀分布中采样的数字填充 self 张量 f(x)=1to−fromf(x) = \dfrac{1}{\text{to} - \text{from}} f(x)=to−from1