Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
程序员文章站
2022-05-26 23:44:09
...
经过观察我的原因是,显存不足
使用的方法是,限制最大显存使用比率
在程序中加入如下几行进行限制:
config = tf.ConfigProto()
config.gpu_options.per_process_gpu_memory_fraction = 0.75 #比值可以根据具体情况调节
session = tf.Session(config=config)
然后问题就解决了
上一篇: could not create cudnn handle: CUDNN_STATUS_NOT_INITIALIZED
下一篇: Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
推荐阅读
-
Could not create cudnn handle: CUDNN_STATUS_ALLOC_FAILED的一种解决方案
-
could not create cudnn handle: CUDNN_STATUS_NOT_INITIALIZED
-
Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
-
Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
-
could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
-
could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
-
could not create cudnn handle: CUDNN_STATUS_NOT_INITIALIZED
-
Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
-
E tensorflow/stream_executor/cuda/cuda_dnn.cc:329] Could not create cudnn handle: CUDNN_STATUS_ALLOC
-
could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR