Solved by Suvarna_Kadam in post #3 
              
              
                The weights of the first layer would be the same as the pretrained ResNet50 that you are using as you only changing the input size, assuming that you have not done any finetuning or training with target data. 

Since the last layer is just declared but not trained yet, it would be initialized with …