Solved by nitaifingerhut in post #2 
              
              
                I think you access this protected attribute of the layer 
something like layer._forward_hooks which holds an OrderedDict of all registered forward hooks. 
an example: 

get the model’s children: x = list(model.children())
get forward hooks of the 1st layer: x[0]._forward_hooks

similarly, you can se…