Error deploying DNN "Unable to resolve the name coder.internal.loadDeepLearningNetwork."
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Shashank Gupta
2020-10-14
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!