mindspore.Tensor.diagonal

Tensor.diagonal(offset=0, axis1=0, axis2=1)[source]

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