Getting activations of certain layer after model is trained

If i understand correctly, you want the weights of a certain layer after training?

You can get the weights with list(learner.model.parameters()) and then choose the corresponding layer from the model. The order is the same as the model layers.

In your case, it should be list(learner.model.parameters())[-5]

Or do you want the output from an input up to that highlighted layer?
If so, see: