Skip to content

Commit

Permalink
Merge pull request #9314 from chengduoZH/v2_fix_doc/pool
Browse files Browse the repository at this point in the history
Fix v2_pooling doc
  • Loading branch information
chengduo authored Mar 22, 2018
2 parents 990d639 + 8440046 commit dc07d52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/paddle/trainer_config_helpers/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2747,17 +2747,17 @@ def img_pool_layer(input,
.. math::
w & = 1 + \\frac{ceil(input\_width + 2 * padding - pool\_size)}{stride}
w & = 1 + ceil(\\frac{input\_width + 2 * padding - pool\_size}{stride})
h & = 1 + \\frac{ceil(input\_height + 2 * padding\_y - pool\_size\_y)}{stride\_y}
h & = 1 + ceil(\\frac{input\_height + 2 * padding\_y - pool\_size\_y}{stride\_y})
- ceil_mode=False:
.. math::
w & = 1 + \\frac{floor(input\_width + 2 * padding - pool\_size)}{stride}
w & = 1 + floor(\\frac{input\_width + 2 * padding - pool\_size}{stride})
h & = 1 + \\frac{floor(input\_height + 2 * padding\_y - pool\_size\_y)}{stride\_y}
h & = 1 + floor(\\frac{input\_height + 2 * padding\_y - pool\_size\_y}{stride\_y})
The example usage is:
Expand Down

0 comments on commit dc07d52

Please sign in to comment.