How to iterate through nn.ModuleDict without ordering keys

Hi @tom, many thanks for your quick response!

I see. That’s not bad solution of course, but especially in the case of a “Module Dictionary”, I cannot see why this isn’t the default behavior. I mean, when someone defines a modules dictionary, like I did above, then they would also expect to iterate it in the order it’s been defined.

Many thanks again!