pytorch 中Tensor.uniform_代替numpy.random.uniform-CSDN博客

网站介绍:文章浏览阅读7.6k次,点赞3次,收藏6次。uniform_(from=0, to=1) → Tensor将tensor用从均匀分布中抽样得到的值填充。例如:a=torch.Tensor(2,3).uniform_(-1,1)转载于:https://www.cnblogs.com/zhangziyan/p/11130859.html..._tensor的uniform_