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

16 lines
344 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.diag
===================
.. py:function:: mindspore.ops.diag(input)
返回一个用输入tensor作为对角线其余元素为 ``0`` 的tensor。
.. warning::
这是一个实验性API后续可能修改或删除。
参数:
- **input** (Tensor) - 输入tensor。
返回:
Tensor