mindspore.Tensor.diag

Tensor.diag()[source]

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