mindspore.Tensor.argmax_with_value =================================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://atomgit.com/mindspore/mindspore/blob/master/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.argmax_with_value.rst :alt: 查看源文件 .. py:method:: mindspore.Tensor.argmax_with_value(axis=0, keep_dims=False) 返回tensor在指定轴上的最大值及其索引。 参数: - **axis** (Union[int, None], 可选) - 指定计算轴。如果为 ``None`` ,计算tensor中的所有元素。默认 ``0`` 。 - **keep_dims** (bool, 可选) - 输出tensor是否保留维度。默认 ``False`` 。 返回: 两个tensor组成的tuple(max, max_indices)。