How to get a intermediate value from nn.Sequential?

Hi @InnovArul,
The problem I was concerned with was getting output of the hidden layers of AlexNet. It turned out that @fmassa has already provided a simple solution:

2 Likes