import torchvision.transforms as transforms
And i’m getting following error :
AttributeError: ‘module’ object has no attribute 'Resize’
Installed torch-1.0.1.post2 torchvision-0.2.1
Hi, I tried your code, it works fine, check your other code, I suppose you might have defined transforms somewhere else
Thanks for testing it… please can you share the torch and torchvision installed version
Maybe you’re not using the version you wish to use. Check the version in shell.