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