you are trying to load a newer checkpoint in an older version of PyTorch. For example you  saved your ‘resnet50-transfer-4.pt’ in PyTorch 1.0.0 while loading it in 0.3.1.
We support backward-compatibility, but not forward compatibility, and this is not expected to work.