Rate this Page

torch.linalg.diagonal#

torch.linalg.diagonal(A,*,offset=0,dim1=-2,dim2=-1)Tensor#

Alias fortorch.diagonal() with defaultsdim1= -2,dim2= -1.