Program error
zane-star-bot opened this issue · 0 comments
zane-star-bot commented
The software platform is matlab r2016.
Running files:demo_two_layer_neuralnet。
The following error prompt appears:
{
Incorrect use +
The matrix dimensions must be consistent.
Error affine/forward (line 53)
Out = obj.x * obj.W + obj.b;
Error two_layer_net/predict (line 152)
x = obj.layer_manager.layers{idx}.forward(x);
Error two_layer_net/loss_partial (line 141)
y = obj.predict(x_curr_batch);
Error two_layer_net/loss (line 125)
f = loss_partial(obj, 1:obj.samples);
Error nn_trainer/train (line 162)
Loss = obj.network.loss();
Error demo_two_layer_neuralnet (line 27)
Info = trainer.train();
}