tensorflow 模型运行出现问题:NotFoundError: Key Variable_10 not found in checkpoint,解决办法2
2019-05-10 16:13
1076 查看
1.问题描述
对训练的模型进行调用预测时,总是只能运行一次,第二次就会出现如下的问题,我开始解决的办法就是关掉spyder,然后重启。
NotFoundError: Key Variable_10 not found in checkpoint
2.解决办法
在代码最前面增加:
tf.reset_default_graph()
相关文章推荐
- 【Ubuntu-Tensorflow】TF1.0到TF1.2出现“Key LSTM/basic_lstm_cell/bias not found in checkpoin”问题
- 关于OP_REQUIRES failed at save_restore_v2_ops.cc:Not found:Key inference/xxx not found in checkpoint解决
- Tensorflow Saver & restore 以及报错问题 NotFoundError: "x_x" not found in checkpoint
- git 出现The current branch is not configured for pull No value for key branch.master.merge found in configuration错误的解决办法
- 执行vagrant ssh命令时出现`ssh` executable not found in any directories in the %PATH%.提示的解决办法
- Windows下pip安装及更新出现“UnicodeEncodeError: 'ascii' codec can't encode character u'\u258c' in position 8: ordinal not in range(128)”问题解决办法
- 使用Gevent程序正常运行出现这个异常KeyError(155880780,) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored解决办法
- 编译时出现set but not used [-Werror=unused-but-set-variable]问题的解决办法
- myeclipse 使用weblogic10启动hibernate项目时出现ClassNotFoundException: org.hibernate.hql.ast.HqlToken异常的解决办法
- Win10运行正当防卫2(Just Cause 2),出现“DXGI_ERROR_NOT_FOUND”错误的解决办法。
- 如何解决 X-code5.0中的iOS7.0SDK运行程序时,出现的以下问题:“Could not find a storyboard named 'Main' in bundle NSBundle”
- 新建JSP无法运行出现错误The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Pat解决办法
- 运行Tomcat出现the JRE_HOME environment variable is not defined correctly 的解决办法
- eclipse中运行时出现ClassNotFoundException解决办法
- Android开发中,使用线程下载apk文件,出现FileNotFound的问题,解决办法
- 解决maven运行site:site的时候出现org/sonatype/aether/graph/DependencyFilter ClassNotFound的问题
- iOS开发遇到的坑之六--使用cocopods管理第三方库时,编译出现Library not found for -lPods问题的解决办法
- IDEA里运行代码时出现Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger的解决办法(图文详解)
- "The string '__checksum' was not found in the string table"解决办法
- 关于出现Specified VM install not found: type Standard VM, name jdk1.5.0_04问题的解决办法