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

19 lines
484 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.unique
====================
.. py:function:: mindspore.ops.unique(input)
对输入tensor中元素去重。
.. warning::
这是一个实验性API后续可能修改或删除。
参数:
- **input** (Tensor) - 输入tensor。
返回:
由两个tensor组成的tuple(output, indices)。
- **output** (Tensor) - 去重后的输出。
- **indices** (Tensor) - 输入tensor的元素在 `output` 中的索引。