why iam having error "The following error occurred converting from gpuArray to single: Conversion to single from gpuArray is not possible"
2 次查看(过去 30 天)
显示 更早的评论
iam using this code [net, info] = trainNetwork(pximds,lgraph,options);
0 个评论
回答(1 个)
Joss Knight
2018-5-17
This can happen sometimes when you are running low on GPU memory due to a bug. You will be receiving the "GPULowOnMemory" warning "GPU is low on memory, which can slow performance due to additional data transfers with main memory. Try reducing the 'MiniBatchSize' training option."
The solution is to reduce your mini-batch size. You will find that training goes faster.
2 个评论
Joss Knight
2018-5-17
Run
warning('on','nnet_cnn:warning:GPULowOnMemory')
then run again. Does this issue occur but the warning NOT show?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 GPU Computing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!