Skip to content

Commit

Permalink
pool padding
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeInnes committed Dec 18, 2017
1 parent 56bb473 commit 980c768
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/conv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -228,5 +228,5 @@ for (T,S) in ((Float32,32), (Float64,64)); @eval begin
end
end;end

maxpool2d(x, k) = pool(x; window = k, mode = 0)
avgpool2d(x, k) = pool(x; window = k, mode = 1)
maxpool2d(x, k; pad = 0) = pool(x; window = k, padding = pad, mode = 0)
avgpool2d(x, k; pad = 0) = pool(x; window = k, padding = pad, mode = 1)

0 comments on commit 980c768

Please sign in to comment.