Error using gpuArray , Maximum variable size....
显示 更早的评论
Hi Matlab users and team,
I am using CNN to train a model for image segmentation. the size of input is 4D
[84 204 154 8] and this is the batch size( I can not decrease it). the network has 70 layers with Unet structure. my computer has (64 RAM, intel i7 9800x CPU, and Titan RTX GPU), and I am using Windows 10 Enterprise with matlab 2019b. first when I run the training program, I recieved error out of memory, so I just change the type of the data from double into single. however, currently I recieve the following error
Maximum variable size allowed on the device is exceeded.
Caused by:
Error using gpuArray
Maximum variable size allowed on the device is exceeded.
So i am not sure what could be the solution: add another GPU card, increase the RAM size into 128, or any possible solution!!!!
I would be thankful for any help and advice!!!
note: I found in matlab suggest to use a tall function but I got error because I am using combine function to combine image datastore with pixel datastor( the error says combine is not supported by parallel toolbox )
2 个评论
Walter Roberson
2019-12-12
It appears that any one array is limited to 4 Gb.
Joss Knight
2019-12-13
Somewhere you are attempting to create an array with more than 2147483647 (intmax('int32')) elements. But your input is only 21111552 elements. If you are using a layer graph, please pass it to analyzeNetwork and find the culprit layer that is outputting far too large an output.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!