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

deep learningMATLABmatlab coder

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.

Best Answer

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');