Skip to content

Commit 31fd87f

Browse files
fumihwhhouseroad
authored andcommitted
fix AvgPool doc. add default value for count_include_pad (#1391)
1 parent 8ff08c2 commit 31fd87f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/Changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6866,7 +6866,7 @@ This version of the operator has been available since version 7 of the default O
68666866
<dt><tt>auto_pad</tt> : string</dt>
68676867
<dd>auto_pad must be either NOTSET, SAME_UPPER, SAME_LOWER or VALID. Where default value is NOTSET, which means explicit padding is used. SAME_UPPER or SAME_LOWER mean pad the input so that the output size match the input.In case of odd number add the extra padding at the end for SAME_UPPER and at the beginning for SAME_LOWER. VALID mean no padding. DEPRECATION NOTE: auto_pad is only intended to support legacy uses, and for framework authors, one is explicitly encouraged to use explicit padding specified in the pads attribute.</dd>
68686868
<dt><tt>count_include_pad</tt> : int</dt>
6869-
<dd>Whether include pad pixels when calculating values for the edges.</dd>
6869+
<dd>Whether include pad pixels when calculating values for the edges. Default is 0, doesn't count include pad.</dd>
68706870
<dt><tt>kernel_shape</tt> : list of ints (required)</dt>
68716871
<dd>The size of the kernel along each axis.</dd>
68726872
<dt><tt>pads</tt> : list of ints</dt>

docs/Operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ Other versions of this operator: <a href="Changelog.md#AveragePool-1">AveragePoo
826826
<dt><tt>auto_pad</tt> : string</dt>
827827
<dd>auto_pad must be either NOTSET, SAME_UPPER, SAME_LOWER or VALID. Where default value is NOTSET, which means explicit padding is used. SAME_UPPER or SAME_LOWER mean pad the input so that the output size match the input.In case of odd number add the extra padding at the end for SAME_UPPER and at the beginning for SAME_LOWER. VALID mean no padding. DEPRECATION NOTE: auto_pad is only intended to support legacy uses, and for framework authors, one is explicitly encouraged to use explicit padding specified in the pads attribute.</dd>
828828
<dt><tt>count_include_pad</tt> : int</dt>
829-
<dd>Whether include pad pixels when calculating values for the edges.</dd>
829+
<dd>Whether include pad pixels when calculating values for the edges. Default is 0, doesn't count include pad.</dd>
830830
<dt><tt>kernel_shape</tt> : list of ints (required)</dt>
831831
<dd>The size of the kernel along each axis.</dd>
832832
<dt><tt>pads</tt> : list of ints</dt>

onnx/defs/nn/defs.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ ONNX_OPERATOR_SET_SCHEMA(
256256
"The output of each pooling window is divided by the number of elements (exclude pad when attribute count_include_pad is zero)."))
257257
.Attr(
258258
"count_include_pad",
259-
"Whether include pad pixels when calculating values for the edges.",
259+
"Whether include pad pixels when calculating values for the edges. Default is 0, doesn't count include pad.",
260260
AttributeProto::INT,
261261
static_cast<int64_t>(0)));
262262

0 commit comments

Comments
 (0)