I’m having a segmentation fault error when I try to invert a 150x150 matrix, as simple as this:
J = torch.randn([20,150])
torch.inverse(J.t()@J)

I didn’t try to find out the exact threshold but for example, 120x120 inversion is fine.
Also, I am having this issue on my macOS Sierra (10.12.6) with Python 3.7.3, Clang 4.0.1 and torch 1.3.0. My Ubuntu machine with Python 3.7.4, GCC 7.3.0 and 1.1.0 has no problem inverting even 3k-3k matrices.
Any suggestions?
Thanks!