Get layer's output from nn.Sequential

You could use forward hooks as described here.

1 Like