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

Syntax Error from cuda(async=True) #72

Open
cwloka opened this issue Aug 29, 2019 · 2 comments
Open

Syntax Error from cuda(async=True) #72

cwloka opened this issue Aug 29, 2019 · 2 comments

Comments

@cwloka
Copy link

cwloka commented Aug 29, 2019

I am using Python 3.7 and I run into a syntax error from the lines which include target = target.cuda(async=True). Based on this StackOverflow answer I am guessing that async=True should be replaced by non_blocking=True, but I wanted to post this to verify if anyone else is running into this and can comment on whether this is a valid work-around.

@syed-abdul-baqi
Copy link

Yes, I changed and it worked fine for me.

@Maruidear
Copy link

是的,我进行了更改,对我来说效果很好。

Which version of pytorch do you use?

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

3 participants