Error while using transforms ToPILImage and RandomResizedCrop

My version is 0.2.0.

Try transforms.RandomResizedCrop(80, ratio=(1,1))?