Best way to get an activation/layer output BasicBlock from pertained ResNet50

Hi there!

What is the best way to get ReLu/any other layer output from a BasickBlock from ResNet50? It’s easy to call for layers form Bottleneck like model.layer4[0].conv3 and use, for example, forward_hook to get values from this layer.
How to change the classes structure to obtained the required information?

You could also use a forward hook and specify the module you want, e.g. conv1, bn, relu, etc.