python
Wuxxxu
这个作者很懒,什么都没留下…
展开
-
torch.manual_seed()及其作用
含义torch.manual_seed(parameter) #为CPU设置种子用于生成随机数,以使得结果是确定的torch.cuda.manual_seed(parameter)#为当前GPU设置随机种torch.cuda.manual_seed_all(parameter)#如果使用多个GPU,应该使用为所有的GPU设置种子。其中parameter为认为设置int型变量作用人为设...原创 2020-03-27 21:12:48 · 1726 阅读 · 0 评论 -
python深浅拷贝解析
https://blog.csdn.net/weixin_40807247/article/details/82250553转载 2020-03-27 21:02:08 · 103 阅读 · 0 评论