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

'EnvWrapper' object has no attribute 'use_cuda' #56

Closed
Mshz2 opened this issue Oct 25, 2022 · 3 comments
Closed

'EnvWrapper' object has no attribute 'use_cuda' #56

Mshz2 opened this issue Oct 25, 2022 · 3 comments

Comments

@Mshz2
Copy link

Mshz2 commented Oct 25, 2022

Hi, thanks for you great contribution with warp_drive. I am just following the tutorial of tutorial-7-training_with_warp_drive_and_pytorch_lightning. I have no error until the cell which we use EnvWrapper:
image

I just installed the exact packages in the tutorial but still get the error of AttributeError: 'EnvWrapper' object has no attribute 'use_cuda' . Thanks for your support.

@Emerald01
Copy link
Collaborator

Hi @Mshz2
Thank you for trying our code. We recently have a big update for the codebase (and it bumps up to version 2.0). It now has dual support for both CUDA C and Numba, therefore instead of env_wrapper.use_cuda = True or False, it changes to env_wrapper.env_backend = "pycuda", "numba" or "cpu". I believe all other tutorials have been modified accordingly and env_wrapper itself has internal backward compatibility too, but we have not yet update the lightning one. We will update it shortly, thank you for your patience.

@Emerald01
Copy link
Collaborator

Fixed, the latest version 2.1 includes the fix. @Mshz2

@Mshz2
Copy link
Author

Mshz2 commented Oct 26, 2022

Fixed, the latest version 2.1 includes the fix. @Mshz2

Many thanks for your support.

@Mshz2 Mshz2 closed this as completed Oct 26, 2022
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