Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem occurred in conv_layer_2d. Can you help me here? #3

Open
AnandInguva opened this issue Jun 10, 2018 · 1 comment
Open

Problem occurred in conv_layer_2d. Can you help me here? #3

AnandInguva opened this issue Jun 10, 2018 · 1 comment

Comments

@AnandInguva
Copy link

Array dimensions must match for binary array op.

Error in conv_layer_2d (line 115)
y=y+bias_p;

Error in net_ff (line 39)
[res(layer+1).x,,,opts] = conv_layer_2d(
res(layer).x,net.layers{layer}.weights{1},net.layers{layer}.weights{2},net.layers{layer}.stride,net.layers{layer}.pad,[],opts
);

Error in select_learning_rate (line 52)
[ net,res,opts ] = net_ff( net,res,opts );

Error in selective_sgd (line 13)
[lr_best]=select_learning_rate(net,opts);

Error in train_net (line 26)
[ net,opts ] = selective_sgd( net,opts );

Error in TrainingScript (line 46)
[net,opts]=train_net(net,opts);

Error in Main_Template (line 128)
TrainingScript();

Error in Main_MNIST_Conv_Capsules (line 30)
Main_Template(); %call training template

Error in RunAll (line 10)
Main_MNIST_Conv_Capsules()

@farhadmath
Copy link

Please help me to fix the following bug in LightCapsNet:
Undefined function or variable
'PADDING_MODE'.

Error in conv_layer_2d (line 60)
if PADDING_MODE==1

Error in net_bp (line 39)
[res(layer).dzdx,
res(layer).dzdw,res(layer).dzdb,opts]
= conv_layer_2d(
res(layer).x,net.layers{layer}.weights{1},net.layers{layer}.weights{2},net.layers{layer}.stride,net.layers{layer}.pad,res(layer+1).dzdx,opts
);

Error in select_learning_rate (line
59)
[ net,res,opts ] =
net_bp( net,res,opts
);

Error in selective_sgd (line 13)
[lr_best]=select_learning_rate(net,opts);

Error in train_net (line 26)
[ net,opts ] = selective_sgd(
net,opts );

Error in TrainingScript (line 46)
[net,opts]=train_net(net,opts);

Error in Main_Template (line 128)
TrainingScript();

Error in Main_MNIST_Conv_Capsules
(line 30)
Main_Template(); %call training
template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants