Dear Mr.ptrblck,
Thank you very much. Your answer solves my question perfectly.
I’m reflecting on why I didn’t think of it.
There are two reasons:


I’m still not familiar with the pytorch framework;


By looking at the tips in the source code, I did not find: the setting order of parameters is the same as the execution order;


I admire your solid foundation and execution.I have a small request.Could you please share your method of learning such a framework (as a beginner, I feel very ignorant about many things)?