as the title, take inception v3 for example, so how to check or print the intermediate output ?
You could register forward hooks as shown in this example.
If you would like to store the activation in a dict, have a look at this example.
Thank you. That is exactly what I need.
another question. how to display the intermediate results?
You can just print the activation from your dict
.
If you would like to visualize them, just call .numpy()
on the activation and you can use e.g. matplotlib to visualize the activation maps.
emmm, matplotlib! thanks!