could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR问题解决方案
2018-03-12 13:37
489 查看
在准备用SRGAN对数据集进行超分实验时,一路都是坑呀!!!!!!!!!!!
下面我会就我遇到的问题,提供解决方案(以下方案是我应用之后,成功才给予分享的):
1. AttributeError: ' module' object has no attribute 'imread':
这是在读取图片时遇到的问题,对于此问题,我的解决办法是安装pillow包。
具体方案: pip install pillow
执行完成之后,我的可以成功执行原先代码继续。
2. could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
具体的问题是下面所示:(我的TensorFlow版本是1.2)E tensorflow/stream_executor/cuda/cuda_dnn.cc:359] could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERRORE tensorflow/stream_executor/cuda/cuda_dnn.cc:326] could not destroy cudnn handle: CUDNN_STATUS_BAD_PARAM
2018-03-12 10:55:56.078991: F tensorflow/core/kernels/conv_ops.cc:671] Check failed: stream->parent()->GetConvolveAlgorithms(&algorithms) Aborted (core dumped)
对于此问题尝试了许多办法,最终的解决方案是:
执行 :sudo rm -f ~/.nv/ (一定最后边不要漏掉“/”,否则会提示“.nv”是目录)
其他方法我也有试过,但不行。
其他人的方案(我并执行没有成功):
gpu_options = tf.GPUOptions(per_process_gpu_memory_fraction=0.1)
sess = tf.Session(config=tf.ConfigProto(gpu_options=gpu_options))
对于这个问题,我提供一下参考链接:https://github.com/tensorflow/tensorflow/issues/6698
欢迎大家留下相关问题,大家一起讨论。
下面我会就我遇到的问题,提供解决方案(以下方案是我应用之后,成功才给予分享的):
1. AttributeError: ' module' object has no attribute 'imread':
这是在读取图片时遇到的问题,对于此问题,我的解决办法是安装pillow包。
具体方案: pip install pillow
执行完成之后,我的可以成功执行原先代码继续。
2. could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
具体的问题是下面所示:(我的TensorFlow版本是1.2)E tensorflow/stream_executor/cuda/cuda_dnn.cc:359] could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERRORE tensorflow/stream_executor/cuda/cuda_dnn.cc:326] could not destroy cudnn handle: CUDNN_STATUS_BAD_PARAM
2018-03-12 10:55:56.078991: F tensorflow/core/kernels/conv_ops.cc:671] Check failed: stream->parent()->GetConvolveAlgorithms(&algorithms) Aborted (core dumped)
对于此问题尝试了许多办法,最终的解决方案是:
执行 :sudo rm -f ~/.nv/ (一定最后边不要漏掉“/”,否则会提示“.nv”是目录)
其他方法我也有试过,但不行。
其他人的方案(我并执行没有成功):
gpu_options = tf.GPUOptions(per_process_gpu_memory_fraction=0.1)
sess = tf.Session(config=tf.ConfigProto(gpu_options=gpu_options))
对于这个问题,我提供一下参考链接:https://github.com/tensorflow/tensorflow/issues/6698
欢迎大家留下相关问题,大家一起讨论。
相关文章推荐
- tensorflow 1.4 could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR 错误的解决办法
- tensorflow 1.4 could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR 错误的解决办法
- Tips002 - Eclipse "Could not create the view" 问题解决方案
- java虚拟机内存不足,“Could not create the Java Virtual Machine”问题解决方案
- could not destroy cudnn handle: CUDNN_STATUS_BAD_PARAM
- error could not create the java virtual machine.error:a fatal exception has occurred...问题之解决
- java虚拟机内存不足,“Could not create the Java Virtual Machine”问题解决方案
- java虚拟机内存不足,“Could not create the Java Virtual Machine”问题解决方案
- Error:could not open jvm.cfg 问题解决方案
- java虚拟机内存不足,“Could not create the Java Virtual Machine”问题解决方案
- 【问题解决】An internal error occurred during: "Computing additional info". Could not initialize class javax.crypto.JceSecurityManager
- java虚拟机内存不足,“Could not create the Java Virtual Machine”问题解决方案
- 转--Could not create the view: An unexpected exception was thrown.问题解决
- Could not create the view: An unexpected exception was thrown.问题解决
- 解决: ERROR JDBCExceptionReporter:78 - Could not retrieve transation read-only status server
- ERROR: Could not initialize SDL video.问题解决
- Could not create the view: An unexpected exception was thrown.问题解决
- Error: One or more components could not be located (altera_nios2). 问题的解决