Hi,
I cannot reproduce this locally with python 3.7 on macos.
Do you know where the segfaults happen exactly? (using gdb or similar tools)
Also, do you see the same problem with torch.inverse(J.t().clone()@J)?
Also how did you installed pytorch?