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