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

'async' is a reserved word in Python >= 3.7 #7

Open
cclauss opened this issue Nov 30, 2018 · 2 comments
Open

'async' is a reserved word in Python >= 3.7 #7

cclauss opened this issue Nov 30, 2018 · 2 comments

Comments

@cclauss
Copy link

cclauss commented Nov 30, 2018

Same problem and recommended fix as CSAILVision/semantic-segmentation-pytorch#125

flake8 testing of https://github.com/CSAILVision/unifiedparsing on Python 3.7.1

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./lib/nn/parallel/data_parallel.py:16:31: E999 SyntaxError: invalid syntax
        v = obj.cuda(dev, async=True)
                              ^
./models/models.py:163:27: F821 undefined name 'ResnetDilated'
            net_encoder = ResnetDilated(orig_resnet,
                          ^
./models/models.py:168:27: F821 undefined name 'ResnetDilated'
            net_encoder = ResnetDilated(orig_resnet,
                          ^
1     E999 SyntaxError: invalid syntax
2     F821 undefined name 'ResnetDilated'
3
@drmeerkat
Copy link

the same problem. Change to non_blocking works ! Thanks !

@cclauss
Copy link
Author

cclauss commented Mar 26, 2019

@hangzhaomit Your review please.

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

Successfully merging a pull request may close this issue.

2 participants