random.seed(seed)
os.environ['PYTHONHASHSEED'] = str(seed)
np.random.seed(seed)
tf.set_random_seed(seed)
random.seed(seed)
os.environ['PYTHONHASHSEED'] = str(seed)
np.random.seed(seed)
tf.set_random_seed(seed)
本文标题:tensorflow 固定随机数,复现训练过程
本文链接:https://www.haomeiwen.com/subject/eeanqltx.html
网友评论