Btrifact() function

Hi there,

I am trying to do an LU decomposition of a matrix as follows:

Q = 1e-8*torch.eye(4).double()
G = torch.eye(4)
Q_LU = Q.btrifact()

when I run, I get

AttributeError                            Traceback (most recent call last)
<ipython-input-37-e3cdbfd9e43b> in <module>()
     19 Q = 1e-8*torch.eye(4).double()
     20 G = torch.eye(4)
---> 21 Q_LU = Q.btrifact()
     23 # G_invQ_GT

AttributeError: 'DoubleTensor' object has no attribute 'btrifact'

Can someone help me out? Thanks!

1 Like

you need to upgrade your pytorch version to atleast v0.1.11

1 Like

@smth, I just recloned the latest commit on the github repo and recompiled but I still have the same problem. How do I check pytorch’s version on my system?

1 Like