LSR icon indicating copy to clipboard operation
LSR copied to clipboard

inquiry about L_ij_bar, singular U.

Open FayeXXX opened this issue 4 years ago • 3 comments

Thanks for ur excellent work. There is a RuntimeError when running at line 72:LLinv = torch.inverse(L_ij_bar) in reasoner.py:

RuntimeError: inverse_cuda: For batch 24: U(68,68) is zero, singular U.

I think it may because that the determinant of L_ij_bar is zero. How can i fix it? Looking forward to ur reply.

FayeXXX avatar Aug 05 '20 12:08 FayeXXX

Hi @FayeXXX , thanks for your question. It is a bug and you may try to use a different bath size to avoid this problem. I will try to fix this issue in the future as we are now rushing to some deadlines. Thanks

nanguoshun avatar Aug 05 '20 15:08 nanguoshun

Hi, I met the same problem, do you have any solutions?

slzbywdf avatar Oct 04 '20 08:10 slzbywdf

hi @slzbywdf, thanks for your feedback. The simplest way is to use a different batch size or different lr to avoid this problem. I will fix this issue in the future but so far the above solution can help you to run it normally. Thanks a lot!

nanguoshun avatar Oct 04 '20 11:10 nanguoshun