pytorch_sym3eig icon indicating copy to clipboard operation
pytorch_sym3eig copied to clipboard

CPU forward gives `IndexError` for diagonal matrices

Open ekhahniii opened this issue 2 years ago • 0 comments

Applying Sym3Eig to diagonal matrices gives IndexError: select(): index 1 out of range for tensor of size [1, 3] at dimension 0.

Simple reproduction:

m = torch.diag(torch.rand(3)).unsqueeze(0)
e, v = Sym3Eig.apply(m)

ekhahniii avatar May 05 '22 21:05 ekhahniii