Update weights of different layers at different iterations

I’m new to pytorch, I want to know how can I update weights of different layers while retain weights of other layers at different iterations, anyone can help me out?