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
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
user06 2018 年 9 月 21 日
how to fix this???
Joss Knight
Joss Knight 2018 年 9 月 21 日
Reduce your MiniBatchSize in the trainingOptions.
user06
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
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
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
Walter Roberson 2019 年 3 月 25 日
Sounds to me as if you are out of GPU memory.
Walter Roberson
Walter Roberson 2019 年 11 月 6 日
cui comments to Joss Knight:
thank you! my network is running out of GPU memory!

サインインしてコメントする。

Alvaro Lopez Anaya
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.

カテゴリ

質問済み:

2018 年 4 月 11 日

回答済み:

2019 年 11 月 7 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by