Solved by kolkir in post #2 
              
              
                Hi, as I understand now you should implement load_state_dict function for c++ manually, it will looks like: 
 torch::autograd::GradMode::set_enabled(false);  // make parameters copying possible
 auto new_params = ReadStateDictFromFile(params_path); // implement this
 auto params = model->named_param…