mindspore/docs/api/api_python/ops/mindspore.ops.Flatten.rst

15 lines
461 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.Flatten
======================
.. py:class:: mindspore.ops.Flatten
扁平化Flatten输入Tensor不改变0轴的size。
更多参考详见 :func:`mindspore.ops.flatten`
输入:
- **input_x** (Tensor) - 待扁平化的Tensor其shape为 :math:`(N, \ldots)` :math:`N` 表示batch size。
输出:
Tensor输出shape为 :math:`(N, X)` 的Tensor其中 :math:`X` 是余下维度的乘积。