Printing the dimensions of all the layers of a pretrained model

The bellowed post is similar to your question.