Finspire13:

hvision. I tried different input size of images (224x224


No the resnet18 model architecture itself has AdaptiveAvgPool2d layer at the end of it. This layer ensures that any size of the input image get converted to a fixed size output, so that varying input sizes would not be a problem for the dense layers.