mindspore/docs/api/api_python/mint/mindspore.mint.nn.AdaptiveA...

22 lines
677 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.mint.nn.AdaptiveAvgPool1d
====================================
.. py:class:: mindspore.mint.nn.AdaptiveAvgPool1d(output_size)
对由多个输入平面组成的输入信号,运用一维自适应平均池化。
对于任何输入大小,输出大小均为 :math:`L_{out}`
输出特征的数量等于输入平面的数量。
.. warning::
这是一个实验性API后续可能修改或删除。
参数:
- **output_size** (int) - 目标输出大小 :math:`L_{out}`
输入:
- **input** (Tensor) - 输入tensorshape为 :math:`(N, C, L_{in})`:math:`(C, L_{in})`
输出:
Tensor。