提交 933ef670 编写于 作者: J jiangjinsheng

fixed doc for ArgMaxWithValue

上级 fb7e4eac
......@@ -1105,9 +1105,11 @@ class ArgMaxWithValue(PrimitiveWithInfer):
:math:`(x_1, x_2, ..., x_N)`.
Outputs:
Tensor, corresponding index and maximum value of input tensor. If `keep_dims` is true, the output tensors shape
tuple(Tensor), tuple of 2 tensors, corresponding index and maximum value of input tensor.
- index (Tensor) - The index for maximum value of input tensor. If `keep_dims` is true, the output tensors shape
is :math:`(x_1, x_2, ..., x_{axis-1}, 1, x_{axis+1}, ..., x_N)`. Else, the shape is
:math:`(x_1, x_2, ..., x_{axis-1}, x_{axis+1}, ..., x_N)`.
- output_x (Tensor) - The maximum value of input tensor, the shape same as index.
Examples:
>>> input_x = Tensor(np.random.rand(5))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册