Solved by hylke_kleve in post #2 
              
              
                I’m getting the same crash in the constructor. What i can see is that the register_module(...) call tries to insert an element into a borked children_ object. 
 [uninitialized_data_pytorch] 
UPDATE: 
Found it. There is a layout mismatch between debug/release. This messes up the inline defined regist…