Mohammed_Awney:

p


Hi,
The problem is that you are referring the same object. When you save it to the list instead of “snapshots.append(model.state_dict())”. Use the following command.
snapshots.append(model.state_dict().copy())

Then only, you can save the values at that point.
One small concern - when you ask question. Please do not mention a specific name. There are lots of people in the forum. Somebody will come and answer your question. If you mention a name, others may not answer.
Thanks