pytorch 中Tensor.uniform_代替numpy.random.uniform uniform_(from=0, to=1) → Tensor 将tensor用从均匀分布中抽样得到的值填充。 例如: a=torch.Tensor(2,3).uniform_(-1,1)