Thanks for your valuable suggestions ,
I was looking into pytorch implementation of resnet here.
They have included a Linear layer after average pooling at line 111. So I assumed that the last layer is a linear layer. Please let me know if my understanding is wrong.
Started working on the 2nd blog based on your suggestions. Will post it once completed.