could not create cudnn handle: CUDNN_STATUS_NOT_INITIALIZED

 

-------------------------- set gpu using tf ---------------------------
import tensorflow as tf
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
session = tf.Session(config=config)
-------------------  start importing keras module ---------------------
import keras.backend.tensorflow_backend as K
import keras......

参考:https://github.com/keras-team/keras/issues/1538 

你可能感兴趣的:(could not create cudnn handle: CUDNN_STATUS_NOT_INITIALIZED)