Skip to content

Conversation

@cclauss
Copy link
Contributor

@cclauss cclauss commented Nov 30, 2018

Fixes #125

async is a reserved word in Python 3.7 and later. To fix this pytorch/pytorch#4999 changed cuda(async=True) to cuda(non_blocking=True) so this PR tracks with that change which landed in PyTourch 0.4.1.

Fixes CSAILVision#125 

__async__ is a reserved word in Python 3.7 and later.  To fix this pytorch/pytorch#4999 changed __cuda(async=True)__ to __cuda(non_blocking=True)__ so this PR tracks with that change which landed in PyTourch 0.4.1.
@hangzhaomit hangzhaomit merged commit 9b9d458 into CSAILVision:master Nov 30, 2018
@cclauss cclauss deleted the patch-1 branch November 30, 2018 05:45
JPlin pushed a commit to JPlin/semantic-segmentation-pytorch that referenced this pull request Oct 31, 2019
cuda(async) —> cuda(non_blocking) for Python >= 3.7
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 this pull request may close these issues.

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

2 participants