mindspore/docs/api/api_python/ops/mindspore.ops.func_argwhere...

17 lines
533 B
ReStructuredText
Raw 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.argwhere
======================
.. py:function:: mindspore.ops.argwhere(x)
返回一个Tensor包含所有输入Tensor非零数值的位置。
参数:
- **x** (Tensor) - Tensor的shape是 :math:`(x_1, x_2, ..., x_R)`。类型可以为int、float或bool。
返回:
一个2-D Tensor数据类型为int64包含所有输入中的非零数值的位置。
异常:
- **TypeError** - 如果 `x` 不是Tensor。
- **ValueError** - 如果 `x` 的维度等于0。