Hi. I can try it out if you provide the cfg file. Nevertheless, if you have a look at the resnet, its actually a bunch of sequential within each other. So why not place the 3 layers that you want in a separate list and then run nn.Sequential(*layers) on this separate list. Do the same for the whole model since you want the output. Then place the two sequential layers in a list and run nn.Sequential(*final_list). There should be a cleaner way to do it but this is what I came up with at the moment.