Error in generating Generic C/C++ Code for Deep Learning Networks

2 vues (au cours des 30 derniers jours)
Raj Patel
Raj Patel le 18 Mar 2021
Commenté : 伯儒 周 le 7 Sep 2021
I'm trying to generate C/C++ code that does not depend on library. Here is the link that I followed.
While executing following command I'm getting error.
>> dlconfig = coder.DeepLearningConfig('none');
Error using coder.DeepLearningConfig. Target library 'none' is not supported. Supported values for target library are cudnn, tensorrt, mkldnn,
arm-compute, arm-compute-mali.

Réponse acceptée

Raj Patel
Raj Patel le 18 Mar 2021
In matlab 2020b, it's not working, but in 2021a, works perfectly.
Used following code.
cfg = coder.config('lib');
cfg.TargetLang = 'C++';
cfg.DeepLearningConfig = coder.DeepLearningConfig('none');
  2 commentaires
Sayan Saha
Sayan Saha le 18 Mar 2021
Hi Raj,
Generating C/C++ code for deep neural nets without using any third party library by setting the deep learning config to "none" is a new feature introduced in 21a release. That's why you receive an error in 20b and it works fine in 21a.
~Sayan
伯儒 周
伯儒 周 le 7 Sep 2021
Hi Sayan,
I also following the link mentioned above, but the coder and the codegen report an error:
expected a character vector
It seems that the error occurs at coder.loadDeepLearningNetwork. I have tried several times but the problem cannot be solved.
I will be grateful if you can provide me suggestion to solve this problem.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Deep Learning Code Generation Fundamentals dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by