cafbafcfa19b93e4b85d1a6a523c274b7641d3df,main.py,,save_checkpoint,#,244

Before Change


    save_states = {
        "epoch": epoch,
        "arch": arch,
        "state_dict": model.state_dict(),
        "optimizer": optimizer.state_dict(),
        "scheduler": scheduler.state_dict()
    }

After Change


    if hasattr(model, "module"):
        model_state_dict = model.module.state_dict()
    else:
        model_state_dict = model.state_dict()
    save_states = {
        "epoch": epoch,
        "arch": arch,
        "state_dict": model_state_dict,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: kenshohara/3D-ResNets-PyTorch
Commit Name: cafbafcfa19b93e4b85d1a6a523c274b7641d3df
Time: 2019-09-03
Author: kensho.hara@aist.go.jp
File Name: main.py
Class Name:
Method Name: save_checkpoint


Project Name: fperazzi/proSR
Commit Name: 5662c474b7a16d2ef9cd01670c1c583da2b3d130
Time: 2018-08-08
Author: fperazzi@adobe.com
File Name: lib/prosr/models/trainer.py
Class Name: CurriculumLearningTrainer
Method Name: save_optimizer


Project Name: naoto0804/pytorch-AdaIN
Commit Name: 4a5eef64d2a0ab5e1737ffbb345d9e72d2f1adc9
Time: 2018-05-16
Author: inoue@hal.t.u-tokyo.ac.jp
File Name: train.py
Class Name:
Method Name: