- Setting the ExecutionEnvironment option to predict and classify or the ExecutionEnvironment input to trainingOptions.
- Lowering the MiniBatchSize option to predict and classify or the MiniBatchSize input to trainingOptions. This will decrease the load on your GPU memory.
Is it possible to use both CPU and GPU to train convolution neural network (CNN)?
6 views (last 30 days)
Show older comments
Hello, I have designed a CNN with 25 layers for medical image classification. The dataset consists of 10000 images of size 227X227X3. The PC has 8GB RAM and GPU (2GB). I am facing out of memory problem for the designed network but it works well for smaller networks. Is is possible to use CPU and GPU in parallel to solve the memory issue? Kindly suggest to solve the problem. I am using MATLAB version 2017b. Thank you
0 Comments
Answers (1)
Joss Knight
on 11 Jun 2018
Yes it is. Are you averse to reading documentation? If not, try:
4 Comments
sotiraw sotiroglou
on 12 Jul 2020
the question seems clear, both in title and in context. Next time please take a minute to actually read it before you try to insult with your answers . this way you will also avoid embarass yourself by not understanding what people asks
Joss Knight
on 13 Jul 2020
Well it wasn't clear to me and unless you are the original poster I suggest you not put words into their mouth. I certainly did not intend any offence, but I would happily apologise to the original poster if I was careless with my words.
See Also
Categories
Find more on Image Data Workflows 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!