Hi! I apologize in advance if this question is repeated, couldn’t find any similar queries.
Is it possible to detect skip connections in any model ? For example if a block in the model contains the below function as their forward pass.
def forward(self, x):
    out = self.layers(x)
    return x + out

Can I somehow detect that a particular set of block have this kind of forward pass with residual connection for any given model? I’m looking for any type of solution - using hooks, or graph or anything else ?
TIA