finished with exit code -1073740791 (0xC0000409)解决方案

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

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

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

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


版权声明:本文为u010801994原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。