10e28a98e185571218b1dcb9f9b91f663a8ec673,catalyst/dl/scripts/trace.py,,trace_model_from_checkpoint,#Any#Any#,14

Before Change



    print("Load model state from checkpoints/best.pth")
    model = experiment.get_model(next(iter(experiment.stages)))
    model.load_state_dict(torch.load(checkpoint_path)["model_state_dict"])

    print("Tracing")
    traced = trace_model(model, experiment, RunnerType, method_name)

After Change



    print("Load model state from checkpoints/best.pth")
    model = experiment.get_model(next(iter(experiment.stages)))
    checkpoint = UtilsFactory.load_checkpoint(checkpoint_path)
    UtilsFactory.unpack_checkpoint(checkpoint, model=model)

    print("Tracing")
    traced = trace_model(model, experiment, RunnerType, method_name)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: Scitator/catalyst
Commit Name: 10e28a98e185571218b1dcb9f9b91f663a8ec673
Time: 2019-06-07
Author: scitator@gmail.com
File Name: catalyst/dl/scripts/trace.py
Class Name:
Method Name: trace_model_from_checkpoint


Project Name: mozilla/TTS
Commit Name: 50fee59a2c60ca711b7959baa1711d586aa49758
Time: 2021-01-21
Author: erogol@hotmail.com
File Name: TTS/server/synthesizer.py
Class Name: Synthesizer
Method Name: load_vocoder


Project Name: mozilla/TTS
Commit Name: 50fee59a2c60ca711b7959baa1711d586aa49758
Time: 2021-01-21
Author: erogol@hotmail.com
File Name: TTS/server/synthesizer.py
Class Name: Synthesizer
Method Name: load_tts