Currently, in order to selectively iterate through the modules in a network, we need to do something like
for name, module in model._modules.items():
if name in KEEP_LIST:
...
It would be good to add an option to .children() (and eventually to .modules() as well) to yield the name of the modules as well. Maybe something like .children(named=True)?
Currently, in order to selectively iterate through the modules in a network, we need to do something like
It would be good to add an option to
.children()(and eventually to.modules()as well) to yield thenameof the modules as well. Maybe something like.children(named=True)?