TF报错:CUDA_ERROE_OUT_OF_MEMORY
2017-11-14 21:53
531 查看
I tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 860M, pci bus id: 0000:01:00.0) E tensorflow/stream_executor/cuda/cuda_dnn.cc:397] could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR E tensorflow/stream_executor/cuda/cuda_dnn.cc:364] could not destroy cudnn handle: CUDNN_STATUS_BAD_PARAM F tensorflow/core/kernels/conv_ops.cc:605] Check failed: stream->parent()->GetConvolveAlgorithms(&algorithms) 已放弃 (核心已转储)
找到如下为tf分配GPU资源代码:
gpu_options = tf.GPUOptions(per_process_gpu_memory_fraction=0.6) #gpu资源的占比,显存×0.6 with tf.Session(config=tf.ConfigProto(log_device_placement=False,gpu_options=gpu_options)) as sess:
也可以设置
config.gpu_options.allow_growth = True #开始不会给tensorflow全部gpu资源 而是按需增加
不够不干活,就是这么牛逼。。。。。。。。。。。。
相关文章推荐
- Caffe | Check failed: error == cudaSuccess (2 vs. 0) out of memory
- caffe训练过程中显示Check failed:error == cudaSuccess(2 vs. 0) out of memory
- caffe在训练时遇到:Check failed: error == cudaSuccess (2 vs. 0) out of memory
- 【caffe跑试验遇到错误:Check failed: error == cudaSuccess (2 vs. 0) out of memory】
- 机器学习中代码出现tensorflow.python.framework.errors_impl.InternalError,from device: CUDA_ERROR_OUT_OF_MEMORY
- 【caffe跑试验遇到错误:Check failed: error == cudaSuccess (2 vs. 0) out of memory】:
- caffe跑试验遇到错误:Check failed: error == cudaSuccess (2 vs. 0) out of memory
- caffe:cudaSuccess (2 vs. 0) out of memory
- Caffe 分类问题 Check failed: error == cudaSuccess (2 vs. 0) out of memory
- 【caffe跑试验遇到错误:Check failed: error == cudaSuccess (2 vs. 0) out of memory】
- caffe跑试验遇到错误:Check failed: error == cudaSuccess (2 vs. 0) out of memory
- caffe failed: error == cudaSuccess (2 vs. 0) out of memory
- Check failed: error == cudaSuccess (2 vs. 0) out of memory
- tensorflow CUDA out of memory
- CUBLAS_STATUS_ALLOC_FAILED CUDA_ERROR_OUT_OF_MEMORY
- 在yolo训练的时候又去测试就会报错:cuda error: out of memory
- java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "javamelody jenkins
- java.lang.OutOfMemoryError:bitmap size exceeds VM budget
- java.lang.OutOfMemoryError: Java heap space解决方法
- Android完美解决GridView异步加载图片和加载大量图片时出现Out Of Memory问题