The most flexible way to apply your modifications would be to write a custom model and derive from ResNet as the base class.
This would allow you to add new layers in your custom model (such as the LSTM) and to modify the forward method as you want.
The resnet implementation from torchvision can be found here 75.