Error deploying DNN "Unable to resolve the name coder.internal.loadDeepLearningNetwork."
Show older comments
Hello,
I am having an error after compiling an app that content a compiled mex file. I compile a dnn function to GPU mex to increase speed of the deep neural network. Then I compile the application to .exe.
function [categ, score] = classifydnn(resized_cropped_img)
persistent net;
if isempty(net)
net = coder.loadDeepLearningNetwork('resnet50_0830.mat','net');
end
[categ, score] = classify(net, resized_cropped_img,'ExecutionEnvironment','gpu');
end
But I am having the error
"Unable to resolve the name coder.internal.loadDeepLearningNetwork."
How can I solve this, what I am forgetting to do?
Thanks
Answers (1)
Shashank Gupta
on 14 Oct 2020
0 votes
Hey Wilmer,
The error looks more like an installation package problem, Have you downloaded the required GPU coder packages needed for this function to work. Type "ver" in command line of MATLAB, it will give you the toolboxes you have installed, look for the required toolbox for this function to work. I suspect this has to do with package installation.
Cheers.
1 Comment
Wilmer Ariza
on 14 Oct 2020
Categories
Find more on Get Started with GPU Coder 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!