MEX FIle For deep learning

9 views (last 30 days)
aitali hassna
aitali hassna on 28 Jun 2020
Answered: Jaya Shankar on 24 Jul 2020
please i don't know why i get this error when i want to generate a mex-file for my function alexnet_predection
i create my neural network name MyNet and i store it in alexnet.mat
i tried with coder.loadDeepLearningNetwork but doesn't work because i get the error that this command supported only for GPU
Thanks for your help^
please i want juste some steps to solve this problem

Answers (1)

Jaya Shankar
Jaya Shankar on 24 Jul 2020
Please use coder.loadDeepLearningNetwork instead of coder.load in your MATLAB file.
If you dont have a GPU, you can still generate a MEX file from this if you have MATLAB coder , and the deep learning support package for MATLAB Coder
See an example here

Community Treasure Hunt

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

Start Hunting!