Tensorflow和MNIST识别自己手写的数字 finished with exit code -1073740791 (0xC0000409)解决方案

在跑alexnet的测试demo时,遇到无错跳出finished with exit code -1073740791 (0xC0000409),查出是显卡内存不足的问题,解决如下:

import os
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"

    1
    2

参考链接:
(1)https://stackoverflow.com/questions/44552585/prevent-tensorflow-from-accessing-the-gpu

(2)https://blog.csdn.net/dlhlSC/article/details/77100435
 

猜你喜欢

转载自blog.csdn.net/u011645307/article/details/84030850