Deep Learning - Data no longer exists on the device

6 次查看(过去 30 天)
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
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 个评论
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
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.

类别

Help CenterFile Exchange 中查找有关 Image Data Workflows 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by