Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR 解决方式
最有可能的是因为 GPU已经被占用
如图四块GPU已经被占用时会有如上报错
或者是因为RTX显卡不兼容它出生前的接口有关。 解决办法:在要执行的python文件添加如下代码即可。
from tensorflow.compat.v1 import ConfigProto
from tensorflow.compat.v1 import InteractiveSession
config = ConfigProto()
config.gpu_options.allow_growth = True
session = InteractiveSession(config=config)