mindspore.Tensor.diag

View Source On Gitee
Tensor.diag()[source]

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