It confused me because in torch you can directly print the loaded model. But in pytorch I just saw parameters inside.
print(model) should just work.
It looks like a dictionary in python and print can just show the key/value rather than the structure of net.
Try this script from szagoruyko
There’s also a summary view of a model in the works: https://github.com/pytorch/pytorch/issues/2001
Nice! Didn’t know that. Seems to be quite useful