LightCapsNet
LightCapsNet copied to clipboard
Problem occurred in conv_layer_2d. Can you help me here?
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()
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