I think it would be easier to not use the Sequential API in this case, but rather define each layer in the .__init__() method of your ResNet network, and call them in order in the .forward() method, this way you can have intermediate variables for features and outputs.