Rename AvgPool to attribute exclude-pad to align with MO and layer creator (#3549)
* AvgPool: Bug fix in attribute exclude-pad to align with MO and layer creator * AvgPool: Change attribute to exclude-pad in python api
This commit is contained in:
parent
98fffe7f22
commit
19154fad2b
@ -44,9 +44,9 @@
|
||||
* **Default value**: None
|
||||
* **Required**: *yes*
|
||||
|
||||
* *exclude_pad*
|
||||
* *exclude-pad*
|
||||
|
||||
* **Description**: *exclude_pad* is a type of pooling strategy for values in the padding area. For example, if *exclude_pad* is "true", zero-values in the padding are not used.
|
||||
* **Description**: *exclude-pad* is a type of pooling strategy for values in the padding area. For example, if *exclude-pad* is "true", zero-values in the padding are not used.
|
||||
* **Range of values**: true or false
|
||||
* **Type**: boolean
|
||||
* **Default value**: None
|
||||
@ -86,7 +86,7 @@ output_{j} = \frac{\sum_{i = 0}^{n}x_{i}}{n}
|
||||
|
||||
```xml
|
||||
<layer ... type="AvgPool" ... >
|
||||
<data auto_pad="same_upper" exclude_pad="true" kernel="3,3" pads_begin="0,0" pads_end="1,1" strides="2,2"/>
|
||||
<data auto_pad="same_upper" exclude-pad="true" kernel="3,3" pads_begin="0,0" pads_end="1,1" strides="2,2"/>
|
||||
<input> ... </input>
|
||||
<output> ... </output>
|
||||
</layer>
|
||||
|
@ -69,7 +69,7 @@ bool op::v1::AvgPool::visit_attributes(AttributeVisitor& visitor)
|
||||
visitor.on_attribute("strides", m_strides);
|
||||
visitor.on_attribute("pads_begin", m_pads_begin);
|
||||
visitor.on_attribute("pads_end", m_pads_end);
|
||||
visitor.on_attribute("exclude_pad", m_exclude_pad);
|
||||
visitor.on_attribute("exclude-pad", m_exclude_pad);
|
||||
visitor.on_attribute("auto_pad", m_auto_pad);
|
||||
visitor.on_attribute("rounding_type", m_rounding_type);
|
||||
return true;
|
||||
|
@ -153,7 +153,7 @@ def avg_pool(
|
||||
"pads_begin": pads_begin,
|
||||
"pads_end": pads_end,
|
||||
"kernel": kernel_shape,
|
||||
"exclude_pad": exclude_pad,
|
||||
"exclude-pad": exclude_pad,
|
||||
"rounding_type": rounding_type.upper(),
|
||||
"auto_pad": auto_pad.upper(),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user