I am sorry but I think you misunderstood my question.
I want the output of the first conv not the output after it has passed through all the layers. That’s why its necessary to loop.
In general, I want the output of the intermediate layers in a nn.Sequential as the question says.