Hi, thank you for your reply.
But my problem is that:
when i iterate over modules like:
for module_pos, module in self.model.features._modules.items():
    x = module(x)

It does not throw any error
But when iterate like this:
for module_pos, module in self.model.features._modules.items():
    for smodule_pos, smodule in module._modules.items():
        x  = smodule(x)

It throws error, therefore there is some sub_module which is gettting skipped.
How can I fully get the lowest nested Modules (i think in a DFGS manner?)?
Thanks again for your reply.