在跑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