Reproduced error also with pytorch 1.2.0.
I discovered
nvcc -v     ->   10.0.130
import torch
torch.version.cuda # gives 10.1.243
Downgrading to pytorch 1.2.0 made the two versions match, but it did not resolve the issue.