Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CP_decompose error #11

Open
sxdnbnb opened this issue Mar 29, 2023 · 2 comments
Open

CP_decompose error #11

sxdnbnb opened this issue Mar 29, 2023 · 2 comments

Comments

@sxdnbnb
Copy link

sxdnbnb commented Mar 29, 2023

I use pytorch 1.10 and tensorly 0.4.0.,but I got error as following:
File "/content/drive/MyDrive/Tensor_decomposing/decompositions.py", line 14, in cp_decomposition_conv_layer
parafac(layer.weight.data, rank=rank, init='svd')
File "/usr/local/lib/python3.9/dist-packages/tensorly/decomposition/candecomp_parafac.py", line 153, in parafac
factor = T.transpose(T.solve(T.transpose(pseudo_inverse), T.transpose(factor)))
File "/usr/local/lib/python3.9/dist-packages/tensorly/backend/pytorch_backend.py", line 152, in solve
solution, _ = torch.gesv(matrix2, matrix1)
AttributeError: module 'torch' has no attribute 'gesv'

@siyoooooo
Copy link

Did you fix this? I'm also having the same problem

@sxdnbnb
Copy link
Author

sxdnbnb commented Mar 31, 2023

Did you fix this? I'm also having the same problem

No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants