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.trace
===================
.. py:function:: mindspore.ops.trace(input)
返回tensor对角线的元素总和。
.. note::
输入必须是Tensor,复数类型暂不支持。
参数:
- **input** (Tensor) - 输入tensor。
返回:
Tensor