@yunjey i’m looking into this. This seems like a pytorch v0.1.10 vs v0.1.11 problem, and not a python 2.7 vs 3.5 problem. For now you can workaround using this line:
outputs = resnet(Variable(images, volatile=True))

I will be tracking this issue here: https://github.com/pytorch/pytorch/issues/1184 42