Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
[DOC] Clarify that global pooling is going to reset padding (#15269)
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 #14421
  • Loading branch information
larroy authored and aaronmarkham committed Jun 27, 2019
1 parent 009907a commit ba30644
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 ba30644

Please sign in to comment.