Deep Learning - Data no longer exists on the device
이전 댓글 표시
I got the following error when trying to implement a deep learning NN in MATLAB.
Error using trainNetwork (line 154) The data no longer exists on the device.
Caused by:
Error using nnet.internal.cnngpu.batchNormalizationForwardTrain
The data no longer exists on the device.
Any suggestions?
답변 (2개)
Joss Knight
2018년 4월 15일
2 개 추천
This would happen if you are resetting the device or switching device using reset or gpuDevice. Perhaps you have a custom layer which is innocuously calling gpuDevice(1); this is resetting the device and invalidating all GPU data.
댓글 수: 7
user06
2018년 9월 21일
how to fix this???
Joss Knight
2018년 9월 21일
Reduce your MiniBatchSize in the trainingOptions.
user06
2018년 9월 21일
the same program is running fine on CPU but when I am running it on GPU it is giving error "The data no longer exists on the device"
Joss Knight
2018년 9월 21일
Usually it's because you're running out of GPU memory, so reduce the MiniBatchSize and see if the problem goes away. If not you're going to have to post your code so we can see what is going on.
Zhipeng Fan
2019년 3월 25일
trainning the segnet ,,
Error using trainNetwork (line 154) , cannot transfer gpuArray to single;
I don't know how to solve it,can you help me ?
Walter Roberson
2019년 3월 25일
Sounds to me as if you are out of GPU memory.
Walter Roberson
2019년 11월 6일
cui comments to Joss Knight:
thank you! my network is running out of GPU memory!
Alvaro Lopez Anaya
2019년 11월 7일
1 개 추천
In my case, I had similar problems, despite of the fact that I have a gtx1080Ti.
As Joss said, reducing the MiniBatchSize solved my problem. It's all about the training options.
카테고리
도움말 센터 및 File Exchange에서 Parallel and Cloud에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!