Extracting speccific layers' output from a module list

You can use forward hooks as described here and register them to the 4th and 10th layers.