8000 Fix MaxPool default pad documentation (#59404) · pytorch/pytorch@c769300 · GitHub
[go: up one dir, main page]

Skip to content

Commit c769300

Browse files
Varal7facebook-github-bot
authore 8000 d andcommitted
Fix MaxPool default pad documentation (#59404)
Summary: Fixes #33384 Pull Request resolved: #59404 Reviewed By: albanD Differential Revision: D28879049 Pulled By: Varal7 fbshipit-source-id: 03a86cd347d53ac2d06028b3f213c5b5d5ab7e91
1 parent 6d51a89 commit c769300

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torch/nn/modules/pooling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class MaxPool2d(_MaxPoolNd):
105105
\text{stride[1]} \times w + n)
106106
\end{aligned}
107107
108-
If :attr:`padding` is non-zero, then the input is implicitly zero-padded on both sides
108+
If :attr:`padding` is non-zero, then the input is implicitly padded with negative infinity on both sides
109109
for :attr:`padding` number of points. :attr:`dilation` controls the spacing between the kernel points.
110110
It is harder to describe, but this `link`_ has a nice visualization of what :attr:`dilation` does.
111111
@@ -179,7 +179,7 @@ class MaxPool3d(_MaxPoolNd):
179179
\text{stride[1]} \times h + m, \text{stride[2]} \times w + n)
180180
\end{aligned}
181181
182-
If :attr:`padding` is non-zero, then the input is implicitly zero-padded on both sides
182+
If :attr:`padding` is non-zero, then the input is implicitly padded with negative infinity on both sides
183183
for :attr:`padding` number of points. :attr:`dilation` controls the spacing between the kernel points.
184184
It is harder to describe, but this `link`_ has a nice visualization of what :attr:`dilation` does.
185185

0 commit comments

Comments
 (0)
0