Skip to content

Commit

Permalink
cnn_train.m: fix a bug preventing biases from being learned (closes v…
Browse files Browse the repository at this point in the history
  • Loading branch information
vedaldi committed Jul 15, 2015
1 parent 3ff3288 commit 59463fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/cnn_train.m
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@
function [net,res] = accumulate_gradients(opts, lr, batchSize, net, res, mmap)
% -------------------------------------------------------------------------
for l=numel(net.layers):-1:1
for j=1:min(numel(res(l).dzdw),1)
for j=1:numel(res(l).dzdw)
thisDecay = opts.weightDecay * net.layers{l}.weightDecay(j) ;
thisLR = lr * net.layers{l}.learningRate(j) ;

Expand Down

0 comments on commit 59463fc

Please sign in to comment.