Solved by LeviViana in post #4 
              
              
                The current implementation of load_state_dict is in Python, and basically it parses the weights dictionary and copies them into the model’s parameters. 
So I guess you’ll need to do the same in CPP.