Skip to content

Commit 9cfa9be

Browse files
authored
Fix output size equations in Conv2D_cn.rst
Correct mathematical equations for output height and width calculations in Conv2D documentation.
1 parent 4bfd2b7 commit 9cfa9be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/paddle/nn/Conv2D_cn.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ bias
8181
如果 ``padding`` = "SAME":
8282

8383
.. math::
84-
H_{out} = \frac{(H_{in} + stride[0] - 1)}{stride[0]}
84+
H_{out} = \lceil \frac{H_{in}}{stride[0]} \rceil
8585
8686
.. math::
87-
W_{out} = \frac{(W_{in} + stride[1] - 1)}{stride[1]}
87+
W_{out} = \lceil \frac{W_{in}}{stride[1]} \rceil
8888
8989
如果 ``padding`` = "VALID":
9090

0 commit comments

Comments
 (0)