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: 4

Non-data size: 5

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: fizyr/keras-retinanet
Commit Name: 8db93cd4c61cf31d750600d1ae048e0bec5517c4
Time: 2019-05-18
Author: zlocha.martin@gmail.com
File Name: keras_retinanet/utils/config.py
Class Name:
Method Name: read_config_file


Project Name: aertslab/pySCENIC
Commit Name: 123e51b8a8708cf105eb0f0c8f268d1e087e712e
Time: 2018-04-19
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/genesig.py
Class Name: GeneSignature
Method Name: intersection


Project Name: IndicoDataSolutions/finetune
Commit Name: bd18db469c937fcfe0ea1835784ce10147780c7c
Time: 2019-08-02
Author: matthew.bayer@indico.io
File Name: finetune/input_pipeline.py
Class Name: BasePipeline
Method Name: _context_to_vector