e68eec29ab5d7d58cf88068b1211d0fe6a1df904,scripts/dump-model-params.py,,,#,67

Before Change


    if os.path.isdir(args.input):
        input, meta = guess_inputs(args.input)
    else:
        assert args.meta is not None
        meta = args.meta
        input = args.input

    // this script does not need GPU

After Change


        for name in var_to_dump:
            assert name in dic, "Variable {} not found in the model!".format(name)
    else:
        var_to_dump = set(dic.keys())

    dic_to_dump = {k: v for k, v in six.iteritems(dic) if k in var_to_dump}
    varmanip.save_chkpt_vars(dic_to_dump, args.output)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorpack/tensorpack
Commit Name: e68eec29ab5d7d58cf88068b1211d0fe6a1df904
Time: 2019-09-04
Author: ppwwyyxx@users.noreply.github.com
File Name: scripts/dump-model-params.py
Class Name:
Method Name:


Project Name: ClimbsRocks/auto_ml
Commit Name: 9ad2455b1b18b2a7b657ed594503017227982462
Time: 2017-11-07
Author: ClimbsBytes@gmail.com
File Name: tests/test_prediction_intervals.py
Class Name:
Method Name: test_predict_intervals_takes_in_custom_intervals


Project Name: dmlc/gluon-nlp
Commit Name: 2294421b990ce92fedfb5876aa3ee4dd119d83b4
Time: 2020-07-30
Author: 37728728+ZheyuYe@users.noreply.github.com
File Name: scripts/conversion_toolkits/convert_fairseq_roberta.py
Class Name:
Method Name: convert_vocab