Modifying a model's layer weights via state_dict

modifying by reference doesn’t work for me, this method worked: