mindspore.Tensor.triu

Tensor.triu(diagonal=0)[source]

For details, please refer to mindspore.ops.triu().

Warning

This is an experimental API that is subject to change or deletion.