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

Have the problem in the main.py #1

Open
Cauchy-Fan opened this issue Mar 29, 2019 · 2 comments
Open

Have the problem in the main.py #1

Cauchy-Fan opened this issue Mar 29, 2019 · 2 comments

Comments

@Cauchy-Fan
Copy link

target_var = torch.autograd.Variable(target.cuda(async=True))
^
SyntaxError: invalid syntax

@MFarooqAit
Copy link

MFarooqAit commented May 8, 2019

@Cauchy-Fan, Try without using async, like:
target_var = torch.autograd.Variable(target.cuda())

@xsacha
Copy link

xsacha commented May 16, 2019

Or without target.autograd.Variable since these do not exist anymore AFAIK.

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