会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
孜孜不倦fly
博客园
首页
博问
闪存
新随笔
订阅
管理
2023年10月22日
深度学习设置随机数种子
摘要: seed = 2023 torch.manual_seed(seed) # torch的CPU随机性,为CPU设置随机种子 torch.cuda.manual_seed(seed) # torch的GPU随机性,为当前GPU设置随机种子 torch.cuda.manual_seed_all(seed
阅读全文
posted @ 2023-10-22 11:17 孜孜不倦fly
阅读(148)
评论(0)
推荐(0)