tom:

m.register_forward_hook(get_activation(name))


this worked…thanks @tom…but now currently feature maps are of size 28 * 28 and I want to make it equal to input image size as 224 * 224…how I can do that?