mindspore/docs/api/api_python/ops/mindspore.ops.AdaptiveAvgPo...

21 lines
847 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.AdaptiveAvgPool2D
================================
.. py:class:: mindspore.ops.AdaptiveAvgPool2D(output_size)
二维自适应平均池化。
更多参考详见 :func:`mindspore.ops.adaptive_avg_pool2d`
.. warning::
这是一个实验性API后续可能修改或删除。
参数:
- **output_size** (Union[int, tuple]) - 输出特征图的size。 `output_size` 可以是二元tuple表示 :math:`(H, W)`也可以是单个int表示 :math:`(H, H)`:math:`H`:math:`W` 可以是int或None如果是None则意味着输出的size与输入相同。
输入:
- **input_x** (Tensor) - AdaptiveAvgPool2D的输入为三维或四维的Tensor数据类型为float16、float32或者float64。
输出:
Tensor数据类型与 `input_x` 相同。