2.3K Star 8.1K Fork 4.3K

GVPMindSpore / mindspore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mindspore.ops.Argmax.rst 727 Bytes
一键复制 编辑 原始数据 按行查看 历史
李林杰 提交于 2023-06-05 14:23 . review op param constraint

mindspore.ops.Argmax

.. py:class:: mindspore.ops.Argmax(axis=-1, output_type=mstype.int32)

    返回输入Tensor在指定轴上的最大值索引。

    更多参考详见 :func:`mindspore.ops.argmax`。

    参数:
        - **axis** (int) - 指定Argmax计算轴。默认值: ``-1`` 。
        - **output_type** (:class:`mindspore.dtype`) - 指定输出数据类型。可选值: ``mstype.int32`` 、 ``mstype.int64`` 。默认值: ``mstype.int32`` 。

    输入:
        - **input_x** (Tensor) - Argmax的输入,shape: :math:`(N, *)` ,其中 :math:`*` 表示任意数量的附加维度。

    输出:
        Tensor,输出为指定轴上输入Tensor最大值的索引。
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore
master

搜索帮助