Is there any way to recursively iterate over all layers in a nn.Module instance including sublayers in nn.Sequential module
I’ve tried .modules() and .children(), both of them seem not be able to unfold nn.Sequential module. It requires me to write some recursive function call to achieve this. I wonder is there any elegant way to do it.