I attempt to apply snapshot ensemble following this paper Snapshot Ensembles: Train 1, get M for free 1 what I understand that I save model weights after each cycle. The one cycle contains many epochs. I want to save these weights at the end of each cycle into a list for further using them in test phase.
At beginning I defined snaphots = [] then @ end of each cycle append models weights to this list : snapshots.append(model.state_dict()). The problem that I found that all snapshot " weights" in the list are the same  although they are different during the training
Untitled.png868×569 12.8 KB
  any recommendation to solve this problem?@ ptrblck