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

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