It seems like some conflicts occur when using pytorch 1.0 with RTX2080(Ti) series.
I used the same code and the same docker image to run, and this kind of error only happened on RTX2080Ti server. (My docker image is built up from cuda10-cudnn7.4 image and the driver version is 410.79)