tensorflow-gpu 1.13 错误:Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR 显卡:1660ti-6G

tensorflow-gpu 1.13 错误:Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
显卡:1660ti-6G
解决方法:如下

'''
@description: 防止cudnn报错
@param {type} 
@return: 
'''
import tensorflow as tf
from keras.backend.tensorflow_backend import set_session
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
set_session(tf.Session(config=config))

你可能感兴趣的:(tensorflow-gpu 1.13 错误:Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR 显卡:1660ti-6G)