mindspore/docs/api/api_python/mint/mindspore.mint.func_triu.rst

13 lines
351 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.mint.triu
===================
.. py:function:: mindspore.mint.triu(input, diagonal=0)
将指定对角线下方的元素设置为0。
参数:
- **input** (Tensor) - 输入tensor。
- **diagonal** (int可选) - 二维tensor的指定对角线。默认 ``0`` ,表示主对角线。
返回:
Tensor