Skip to content

Commit

Permalink
Update conv_layer_2d.m
Browse files Browse the repository at this point in the history
  • Loading branch information
yechengxi authored Sep 24, 2018
1 parent 6ada9dd commit ef136bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CoreModules/layers/conv_layer_2d.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
if opts.nnet_ver<11
y = conv2d_nntb.backward( I, [], dzdy, [] );
gradients = conv2d_nntb.gradients(I, dzdy);
if pad(1)~=pad(2)||pad(3)~=pad(4)
PADDING_MODE=1;%introduced without further checking
end
if PADDING_MODE==1
pad=pad2;
y=y(1+pad(1):pad(1)+i1,1+pad(3):pad(3)+i2,:,:);
Expand Down

0 comments on commit ef136bd

Please sign in to comment.