运行tensorflow的例子,出现Process finished with exit code 3问题
来源:互联网 发布:seo技术培训 陕西 编辑:程序博客网 时间:2024/06/07 07:06
最近学习tensorflow。按照手册学习到Deep MNIST for Experts时,出现
test_accuracy = accuracy.eval(feed_dict={x: mnist.test.images, y_: mnist.test.labels, keep_prob:1.0})这条语句不执行,后面的代码也没执行。但是没报错,显示Process finished with exit code 3。
没搜到exit code 3是什么原因导致的,一般程序正常运行显示的是Precess finished with exit code 0.
调试状态下,执行到上面那条语句时,程序也是不执行了,一个变量的值都不显示。
调用资源管理器,看到代码运行时,cpu 使用率接近100%,内存使用2G左右。后来猜想可能mnist.test.images太大了,运行不了,mnist.test.images有10000张。将代码改为
test_accuracy = accuracy.eval(feed_dict={x: mnist.test.images[0:2000], y_: mnist.test.labels[0:2000], keep_prob: 1.0}),只用到test数据
集的一部分。代码就可以运行了。附张运行的结果图。手册上的代码是训练20000次,准确率能达到99.2%。我只训练了5000次,准确率为98.65%。
0 0
- 运行tensorflow的例子,出现Process finished with exit code 3问题
- tensorflow bug: Process finished with exit code -1073740791 (0xC0000409)
- Python 运行出现Process finished with exit code -1073741515 (0xC0000135)错误
- cordova Process finished with exit code -1
- process finished with exit code 52
- android Process finished with exit code 0
- pyCharm Process finished with exit code -1073740791 (0xC0000409)
- AS出现 Process 'command 'F:\java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1问题
- bug宝典node篇 nodejs Process finished with exit code 0
- python 使用requests时提示Process finished with exit code -1073741819 (0xC0000005)
- python 中文字符报错Process finished with exit code 0
- Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
- 解决android studio中出现的finished with non-zero exit value 1或者finished with non-zero exit value 2的问题
- finished with exit code -1073740791 (0xC0000409)
- Andriod studio编译问题:org.gradle.process.internal.ExecException aapt.exe finished with non-zero exit
- gradleb编译的finished with non-zero exit value问题
- Android Studio各种坑爹之:finished with non-zero exit value 1和Return code 1 for dex process.
- 奇怪的异常 Process 'command '---.exe'' finished with non-zero exit value 2
- linux文件夹打包命令
- ACM-ICPC---Robot Roll Call – Cambot…Servo…Gypsy…Croooow
- 智能搜索
- Unity开发中的坑
- eclipse中ctrl+h默认打开是Java Search,怎么设置成默认打开是File Search?
- 运行tensorflow的例子,出现Process finished with exit code 3问题
- weblogic 12c 静默安装
- js事件监听(考虑兼容性)
- 事件的捕获和冒泡机制
- Oracle创建dblink
- Maven中site插件介绍
- phpstorm出现 file was loaded wrong encoding:utf8
- VDMA从配置到编程
- AlertDialog自定义