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

Config Object failing with AttributeError: module 'torch' has no attribute 'cuda' #34

Open
1 task done
aman-paco opened this issue Apr 25, 2024 · 1 comment
Open
1 task done
Labels
bug Something isn't working

Comments

@aman-paco
Copy link

Initial Checks

  • I confirm that I'm on the latest version

Description

File "C:\Users\amanv\Desktop\new-env\lib\site-packages\openparse\config.py", line 16, in init
if torch.cuda.is_available():
AttributeError: module 'torch' has no attribute 'cuda'

Example Code

File "C:\Users\amanv\Desktop\new-env\lib\site-packages\openparse\config.py", line 16, in __init__
    if torch.cuda.is_available():
AttributeError: module 'torch' has no attribute 'cuda'
@aman-paco aman-paco added the bug Something isn't working label Apr 25, 2024
@Filimoa
Copy link
Owner

Filimoa commented Apr 28, 2024

Can you run python -c "import openparse.version; print(openparse.version.version_info())"

@Filimoa Filimoa changed the title Giving error for CUDA Config Object failing with AttributeError: module 'torch' has no attribute 'cuda' Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants