- 博客(1)
- 资源 (3)
- 收藏
- 关注
原创 设置随机种子的函数
def set_seed(seed=1234): random.seed(seed) np.random.seed(seed) torch.manual_seed(seed) torch.cuda.manual_seed(seed)
2019-10-15 10:24:13 1690
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
def set_seed(seed=1234): random.seed(seed) np.random.seed(seed) torch.manual_seed(seed) torch.cuda.manual_seed(seed)
2019-10-15 10:24:13 1690
TA创建的收藏夹 TA关注的收藏夹
TA关注的人