Skip to content

Commit

Permalink
[DOC] Clarify that global pooling is going to reset padding
Browse files Browse the repository at this point in the history
This behaviour changed from older MXNet versions in which global pooling
would consider padding. This clarifies the user documentation.

See also apache#14421
  • Loading branch information
larroy committed Jun 18, 2019
1 parent 6d49b01 commit 0b0d459
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/operator/nn/pooling.cc
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ The definition of *f* depends on ``pooling_convention``, which has two options:
f(x, k, p, s) = ceil((x+2*p-k)/s)+1
But ``global_pool`` is set to be true, then do a global pooling, namely reset
``kernel=(height, width)``.
When ``global_pool`` is set to be true, then global pooling is performed. It will reset
``kernel=(height, width)`` and set the appropiate padding to 0.
Three pooling options are supported by ``pool_type``:
Expand Down

0 comments on commit 0b0d459

Please sign in to comment.