As stated by @iacolippo and in the comment session and myDennisCode, the problem really was dependency versions. I had torchvision==0.4.0
(which confused me) and torch==1.2.0
.
To fix the problem, simply install torch==0.4.1
and torchvision==0.2.1
.