I’m not sure, if you are passing the custom resize class as the transformation or torchvision.transforms.Resize.
However, transform.resize(inputs, (120, 120)) won’t work.
You could either create an instance of transforms.Resize or use the functional API:
torchvision.transforms.functional.resize(img, size, interpolation)