Lasagne.layers.get_output equivalent method in pytorch

You could use forward hooks to get the output activations of specific layers as seen in this post.
Alternatively you could also return the intermediate activations from some layers directly in your forward method (if you are using a custom model).

Let me know, if this would work.