首页 行业资讯 宠物日常 宠物养护 宠物健康 宠物故事

TensorFlow 重复读取模型值Key Variable_10 not found in checkpoint...

发布网友

我来回答

1个回答

热心网友

mole_file = tf.train.latest_checkpoint('模型路径')
with tf.Session() as sess:
sess.run(tf.global_variables_initializer())
if mole_file is not None:
saver.restore(sess, mole_file)

就可以了,就是模型多次载入的问题。

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com