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

in the utils.py #17

Open
Chirag0096 opened this issue Sep 28, 2023 · 1 comment
Open

in the utils.py #17

Chirag0096 opened this issue Sep 28, 2023 · 1 comment

Comments

@Chirag0096
Copy link

in line number 30
use this code to fix it

def cuda(x):
return x.cuda(non_blocking=True) if torch.cuda.is_available() else x

@Chirag0096
Copy link
Author

this will solve your issue which i was also facing and your work is appriciated man

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

1 participant