Skip to content

Commit

Permalink
Fix error on MaxPooling test
Browse files Browse the repository at this point in the history
  • Loading branch information
mldiego committed Feb 16, 2024
1 parent 3682cad commit bb2f7ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/nnv/engine/nn/layers/MaxPooling2DLayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ function set_padding(obj, padding)

% compute feature map for each cell of map do it in parallel using cpu or gpu
% TODO: explore power of using GPU for this problem
maxMap = cast(zeros(1, h*w), 'like', in_image.V); % using single vector for parallel computation
maxMap = cast(zeros(1, h*w), 'like', input); % using single vector for parallel computation

for l=1:h*w
a = mod(l, w);
Expand Down

0 comments on commit bb2f7ea

Please sign in to comment.