caffe 报错 Check failed: error == cudaSuccess (77 vs. 0) an illegal memory access was encountered
2017-08-02 16:50
579 查看
之前从没有遇到这样的问题,找了三个小时的bug和资料后,在此处发现了解决方案,他是这么说的:
In my case the “top” and “bottom” layer in the “deconvolution” layers where the same (save variable but with different num_output) and this cause a strange problem to occur somehow overwriting the data wrongly and producing the error. As soon as I changed them so input and output are stored in separate variables problems was solved.
My advice is try to store variables on every layer in separate memory location and this may solve the problem.
也就是当一个层的bottom和top维度一致时,取同样的名字没问题(比如说relu),但是当两者维度不一致时,就不能取同一个名字。
In my case the “top” and “bottom” layer in the “deconvolution” layers where the same (save variable but with different num_output) and this cause a strange problem to occur somehow overwriting the data wrongly and producing the error. As soon as I changed them so input and output are stored in separate variables problems was solved.
My advice is try to store variables on every layer in separate memory location and this may solve the problem.
也就是当一个层的bottom和top维度一致时,取同样的名字没问题(比如说relu),但是当两者维度不一致时,就不能取同一个名字。
相关文章推荐
- error == cudaSuccess. 77 vs 0. Error at: /caffe2/core/context_gpu.h:307: an illegal memory access wa
- yolo train:CUDA Error: an illegal memory access was encountered darknet: cuda.c:36:check_error
- 【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
- 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】:
- caffe:Check failed: error == cudaSuccess (10 vs. 0) invalid device ordinal
- 【caffe】 Check failed: error == cudaSuccess (30 vs. 0) unknown error
- 配置SSD-caffe测试时出现“Check failed: error == cudaSuccess (10 vs. 0) invalid device ordinal”解决
- 配置SSD-caffe测试时出现“Check failed: error == cudaSuccess (10 vs. 0) invalid device ordinal”解决
- Check failed: error == cudaSuccess (2 vs. 0) out of memory
- caffe 训练时,出现错误:Check failed: error == cudaSuccess (4 vs. 0) unspecified launch failure
- caffe跑试验遇到错误:Check failed: error == cudaSuccess (2 vs. 0) out of memory
- CUDA/caffe ERROR:cudaGetDeviceCount returned 30/35,Check failed: error == cudaSuccess (30/35 vs. 0)
- 【caffe】 Check failed: error == cudaSuccess (30 vs. 0) unknown error
- caffe failed: error == cudaSuccess (2 vs. 0) out of memory