mindspore.ops.Triu

class mindspore.ops.Triu(diagonal=0)[源代码]
prim = ops.Triu(diagonal)
out = prim(input)

等价于

ops.triu(input, diagonal)

更多详情请查看: mindspore.ops.triu()