ERROR IN NETSUM , DON'T KNOW WHAT TO DO ABOUT IT

every time i input
info = netsum('code')%or name type
the result will be as follow
Error in net_input_fcn (line 6)
info = nnModuleInfo(fcn);
Error using nnet7.net_input_fcn
Output atgument "out1"(and maybe others) not assigned during call to "D:\Program Files\MATLAB\R2014a\toolbox\nnet\nnobsolete\+nnet7\net_input_fcn.m>net_input_fcn"
Error in netsum (line 28)
n = nnet7.net_input_fcn(mfilename,varargin{:});

Answers (1)

Gary - I think that you have to define a code. According to netsum,
info = netsum('code') returns information about this function. The following codes are supported:
netsum('name') returns the name of this function.
netsum('type') returns the type of this function.
Etc.

6 Comments

but even i type orders like info = netsum('name') it also give me this : info = netsum('name') Error in net_input_fcn (line 6) info = nnModuleInfo(fcn);
Error using nnet7.net_input_fcn Output argument "out1" (and maybe others) not assigned during call to "C:\Program Files\MATLAB\R2014a\toolbox\nnet\nnobsolete\+nnet7\net_input_fcn.m>net_input_fcn".
Error in netsum (line 28) n = nnet7.net_input_fcn(mfilename,varargin{:});
Gary - what happens when you run the example from netsum
z1 = [1 2 4; 3 4 1}
z2 = [-1 2 2; -5 -6 1]
b = [0; -1]
n = netsum({z1,z2,concur(b,3)})
have no problem to run that example
What are the properties of n i.e. in the Command Window, when you type
netsum({z1,z2,concur(b,3)})
what is returned? What happens if you immediately call
netsum('name')
Is the error still generated?
here're the results z1 = [1 2 4; 3 4 1] z2 = [-1 2 2; -5 -6 1] b = [0; -1] n = netsum({z1,z2,concur(b,3)})
z1 =
1 2 4
3 4 1
z2 =
-1 2 2
-5 -6 1
b =
0
-1
n =
0 4 6
-3 -3 1
>> netsum('name') Error in net_input_fcn (line 6) info = nnModuleInfo(fcn);
Error using nnet7.net_input_fcn Output argument "out1" (and maybe others) not assigned during call to "C:\Program Files\MATLAB\R2014a\toolbox\nnet\nnobsolete\+nnet7\net_input_fcn.m>net_input_fcn".
Error in netsum (line 28) n = nnet7.net_input_fcn(mfilename,varargin{:});
It is interesting that the error message seems to be raised from some code that is considered obsolete (see nnobsolete). The documentation isn't very clear on the usage of this function with respect to the input codes. Perhaps it is only meant to be called after the creation of a certain network? From the documentation at netsum
Use feedforwardnet or cascadeforwardnet to create a standard network that uses netsum.
What happens if you create the (say) feedforwardnet and then run netsum('name')?

Sign in to comment.

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Asked:

on 9 Aug 2014

Commented:

on 15 Aug 2014

Community Treasure Hunt

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

Start Hunting!