Torchsummary pip. Suppose the model you are using is a simple ResNet18 model.