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

Unable to use pytorch as the backend #35

Closed
rtmlp opened this issue Feb 2, 2018 · 2 comments
Closed

Unable to use pytorch as the backend #35

rtmlp opened this issue Feb 2, 2018 · 2 comments

Comments

@rtmlp
Copy link

rtmlp commented Feb 2, 2018

I tried to use pytorch as the backend by using tl.set_backend('pytorch')

But I get an error mentioning that ModuleNotFoundError: No module named 'tensorly.backend.pytorch_backend'

I have pytorch installed and can check using import torch. I run pytorch code on my GPU without any issues

Thanks

@JeanKossaifi
Copy link
Member

Hi @rtmatx!
Which version of TensorLy are you using did you install it with pip?
It might be that you are using an older version that doesn't have the pytorch backend yet ..

To check the version:

import tensorly as tl
tl.__version__

@rtmlp
Copy link
Author

rtmlp commented Feb 2, 2018

Thanks @JeanKossaifi

I checked the version and it solved the issues. I first installed using pip last night and it installed previous version but today I updated with installation from source

@rtmlp rtmlp closed this as completed Feb 2, 2018
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