Does Matlab have any function that can calculate the required memory for a CNN?
Show older comments
Hello everyone, I'm currently doing CNN training. In my case, I'm training it with GPU.
I'm trying to find the optimum layer and optimum number of neurons for my CNN design. But sometimes, when I increase the number of layers or increase the number of neuron in FC layer, such as "fullyConnectedLayer(4096)", I encounter "Out of memory on device" error.
I understand that this error might occurs because my laptop/PC CPU+RAM or GPU memory is not enough to support my CNN structure size.
My concern is: Does Matlab have any function that can calculate the required memory for a CNN?
This can help user predict how much RAM or VRAM is needed for a CNN design.
Since we have define our layers for CNN, I hope there is a function that can save user time for manual calculation.
Hope to hear from anyone. Thank you in advance!
Accepted Answer
More Answers (0)
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!