could not destroy cudnn handle: CUDNN_STATUS_BAD_PARAM

来源:互联网 发布:云盘软件推荐 编辑:程序博客网 时间:2024/05/24 04:40

without close of session,you can use method 1, with tf.session or sess.close()

1.

config = tf.ConfigProto(device_count = {'GPU': 0})

config.gpu_options.allow_growth = True

with tf.Session(config=config) as sess:


2.

or 

#close session

sess.close()