Thanks for the reply. Strange! When I use “model.named_parameters[“name”] = a_tensor” to change some parameters of the model, it seems that it doesn’t work,  so I have to use .set_data() instead of it. Is there any solutions for this?