sess.restore() 和 tf.import_meta_graph() 在使用时的一些关联

在加载已经训练好的模型时,如果不用tf.import_meta_graph()导入“原模型的计算图”,则需要手动在编写一次 计算图。

如果使用tf.import_meta_graph(),则直接用sess.restore()就可以了,如下例:

猜你喜欢

转载自blog.csdn.net/u014765410/article/details/100175673