Resize tensor without converting to PIL image?

Hi,
I think I’m not getting what the dim means…
I don’t know why I’m getting this error because clearly my input has the same dim as the scale_factor tuple.
please help