Question about size of input model

Hi
I have a question :
When we use pre-trained model such as resnet34 the size of input image is 224x224.
But we use a trick : first we train classifier with a size such as 64 then 128 …
How can we do it and how the model resize the size of input image ?
Thank you