chaoyuaw / pytorch-coviar

Compressed Video Action Recognition
https://www.cs.utexas.edu/~cywu/projects/coviar/
GNU Lesser General Public License v2.1
502 stars 126 forks source link

Syntax Error from cuda(async=True) #72

Open cwloka opened 5 years ago

cwloka commented 5 years ago

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 commented 5 years ago

Yes, I changed and it worked fine for me.

Maruidear commented 4 years ago

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

Which version of pytorch do you use?