ah, I make a quick example to show what I did, make a mistake in the example, definitely the optimizer should receive module_2.parameters() in the real code. I also fixed the code in the original example