Why am i getting 'Not enough input arguments?
Mostrar comentarios más antiguos
function out = CodeNNet(in)
persistent NNet
if isempty(NNet)
NNet = coder.loadDeepLearningNetwork('NNet.mat');
end
out = predict(NNet,in);
cfg = coder.config('lib');
cfg.TargetLang = 'C++';
cfg.GenCodeOnly = true;
dlcfg = coder.DeepLearningConfig('arm-compute');
dlcfg.ArmArchitecture = 'armv8';
dlcfg.ArmComputeVersion = '20.02.1';
cfg.DeepLearningConfig = dlcfg;
codegen -args {ones(256,256,3,'single')} -config cfg CodeNNet
11 comentarios
Ignacio Acevedo
el 24 de Mzo. de 2021
Jan
el 24 de Mzo. de 2021
Please post a copy of the complete error message. Which function does not get enough input arguments? predict, or is in a function also, or do you call the function CodeNNet without input arguments, e.g. by starting it using the green triangle in the editor?
Gaurav Garg
el 27 de Mzo. de 2021
Hi Igancio,
Can you post a picture of the error you are facing?
Jan
el 27 de Mzo. de 2021
I assume, this thread is abandoned.
John D'Errico
el 27 de Mzo. de 2021
Poor sad thread, unloved and abandoned.
Jan
el 27 de Mzo. de 2021
I do love this thread. I do care and Gaurav does also and you, John, show your emotions as well.
Thread, we are here, if you need us.
Ignacio Acevedo
el 27 de Mzo. de 2021
Ignacio Acevedo
el 27 de Mzo. de 2021
Walter Roberson
el 27 de Mzo. de 2021
You need a prototype call to generate code, as code generation specializes the datatypes according to the prototype.
Ignacio Acevedo
el 27 de Mzo. de 2021
Walter Roberson
el 28 de Mzo. de 2021
The
codegen -args {ones(256,256,3,'single')} -config cfg CodeNNet
should not be part of the source code, and the function name must go before the -args
Respuestas (1)
Gaurav Garg
el 30 de Mzo. de 2021
Hi,
From what seems to be the problem so far-
You should not include
codegen -args {ones(256,256,3,'single')} -config cfg CodeNNet
in your source code.
Categorías
Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
