bb34bdd299ae9b13689874de4971bbee0cd7ed07,catalyst/dl/utils/trace.py,,trace_model_from_checkpoint,#Any#Any#Any#Any#Any#Any#Any#Any#Any#,159

Before Change


    checkpoint_path = logdir / "checkpoints" / f"{checkpoint_name}.pth"
    print("Load config")
    config: Dict[str, dict] = load_config(config_path)
    runner_params = config.get("runner_params", {}) or {}

    // Get expdir name
    config_expdir = Path(config["args"]["expdir"])
    // We will use copy of expdir from logs for reproducibility

After Change


        runner.model = model_dump
        return result

    logger.info("Tracing is running...")
    traced_model = trace_model(
        model=model,
        predict_fn=predict_fn,
        batch=batch,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: catalyst-team/catalyst
Commit Name: bb34bdd299ae9b13689874de4971bbee0cd7ed07
Time: 2020-09-11
Author: scitator@gmail.com
File Name: catalyst/dl/utils/trace.py
Class Name:
Method Name: trace_model_from_checkpoint


Project Name: hanxiao/bert-as-service
Commit Name: dd3c13d51975d7ca569681dd19639473d19e8e85
Time: 2018-12-14
Author: hanhxiao@tencent.com
File Name: server/bert_serving/server/__init__.py
Class Name: BertWorker
Method Name: run


Project Name: ray-project/ray
Commit Name: cb919c5e5c151f87616850c056402beefd5f7ff6
Time: 2020-09-04
Author: rkooo567@gmail.com
File Name: streaming/python/runtime/transfer.py
Class Name: DataReader
Method Name: __init__