将tensor用从均匀分布中抽样得到的值填充。
例如:
a=torch.Tensor(2,3).uniform_(-1,1)
转载于:https://www.cnblogs.com/zhangziyan/p/11130859.html