My models looks like this:
class hybrid_cnn(nn.Module):
    def __init__(self,**kwargs):
        super(hybrid_cnn,self).__init__()
        resnet = torchvision.models.resnet50(pretrained=True)
        self.base = nn.Sequential(*list(resnet.children())[:-2])
    def forward(self,x):
        x = self.base(x)
        clf_outputs = {}
    


I want to add residual connection from Resnet to conv2 in both blocks. I am not able to find implementations online plus other questions regarding ResNets have not been answered.