d0eddfd7882f053bd6d6b6a7b0305f5c42d5d39f,benchmark.py,,,#,89

Before Change


    experiments = {k: common["test_%s" % k] for k in
                   ["client_batch_size", "max_batch_size", "max_seq_len", "num_client", "pooling_layer"]}

    fp = open("benchmark-%d%s.result" % (common["num_worker"], "-fp16" if common["fp16"] else ""), "w")
    for var_name, var_lst in experiments.items():
        // set common args
        for k, v in common.items():

After Change


    fp = open("benchmark-%d%s.result" % (args.num_worker, "-fp16" if args.fp16 else ""), "w")
    for exp_name in experiments:
        // set common args
        cargs = deepcopy(args)
        // set default value
        for v in experiments:
            setattr(cargs, v, vars(args)["default_%s" % v])
        exp_vars = vars(args)["test_%s" % exp_name]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: hanxiao/bert-as-service
Commit Name: d0eddfd7882f053bd6d6b6a7b0305f5c42d5d39f
Time: 2019-01-21
Author: hanhxiao@tencent.com
File Name: benchmark.py
Class Name:
Method Name:


Project Name: keras-team/keras
Commit Name: be24159959672c32abb31697e721d96ae6ffaf97
Time: 2016-02-27
Author: ipod825@gmail.com
File Name: keras/wrappers/scikit_learn.py
Class Name: BaseWrapper
Method Name: fit


Project Name: google/deepvariant
Commit Name: bb621f07cb33b6e8ab46c3d7b6d51db7bd8dba68
Time: 2018-03-20
Author: cym@google.com
File Name: deepvariant/haplotypes.py
Class Name:
Method Name: _resolve_overlapping_variants


Project Name: microsoft/nni
Commit Name: 5c96b82c3c86dde8250aa371aff958872a62008e
Time: 2019-12-02
Author: 27178119+squirrelsc@users.noreply.github.com
File Name: src/sdk/pynni/nni/nas/pytorch/pdarts/mutator.py
Class Name: PdartsMutator
Method Name: drop_paths