Closed ShaofengZou closed 4 years ago
Which version of PyTorch are you using?
I have tried on 1.0.0
, 1.0.1.post2
and 1.1.0
. None of these three versions successfully worked.
I just checked and align_corners
got introduced to grid_sample
with PyTorch 1.3.0
, so you can either meet this minimum version or remove the align_corners
attribute from the grid_sample
call.
All right. I have make it worked by adding align_corners
to the grid_sample
call.
Thank you very much!
It was triggered when running to
How can l solve this problem? Is that a cause of low pytorch version? Looking forward to your reply.