因安装niftynet(一个医学影像深度学习库)的需要,将包tensorflow-gpu
从1.10.0
回退为1.6
后来运行mnist程序时,出现
The kernel appears to have died. It will restart automatically.
利用
pip install –upgrade tensorflow-gpu
命令重新升级 tensorflow库至1.10.1
后程序运行正常
注:有时候一直出现这个错误可能是tensorflow(-gpu)版本过低的原因
解决办法 在终端(terminal)中利用pip install –upgrade命令升级一下版本