Extraction and modification of intermediate layer outputs from pre-trained models and layer by layer inference

@ptrblck I wonder, if there is also a way to use hooks in the following post that I submitted a few moments ago: Search and modify layer/module outputs by name