Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix for error TypeError: _cuda() got an unexpected keyword argument '…
…non_blocking' (#904)
- Loading branch information
99c2c26
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw, this wasn't the original, it was just changed a day before from:
So if it was a mistake, then perhaps, it should go back to
to_gpu(a, async=True)
?The change happened here (Scroll to the end)
f0f1266#diff-c1db4f9015fc8f992cfdb7650f0011dd
99c2c26
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes i figured that out , but was little unsure whether to use async=True as async would become keyword from python 3.7 onwords, it may cause some other bugs down the line.
see this discussion :
http://forums.fast.ai/t/cuda-syntax-error/20177
Removing this parameter here i was able to run ipython notebook successfully with no apparent performance issues.
99c2c26
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, The requirements for 0.7.x has been just set to 3.6 >= python < 3.7 so this won't be a problem.
I wasn't part of the 0.7x writing, so I can't tell the impact, but it looked like a potentially bad change. I will let you guys figure it out.