Solved by ptrblck in post #2 
              
              
                You could check, if the parameters are updated using the current approach, as I’m not sure if your approach of using the state_dict to separate the weight and bias parameters would work. 
Directly accessing the parameters would work: 
weight_list = [p for n, p in model.named_parameters() if 'weight'…