d0eddfd7882f053bd6d6b6a7b0305f5c42d5d39f,benchmark.py,,,#,89

Before Change


    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():
            setattr(args, k, v)

        avg_speed = []
        fp.write("speed wrt. %s\n" % var_name)
        for cvar in var_lst:
            // override exp args

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]
        avg_speed = []
        fp.write("speed wrt. %s\n" % exp_name)
        for cvar in exp_vars:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

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: geomstats/geomstats
Commit Name: fd1ba604a3ca228cebefe590a48e31893b664a66
Time: 2020-06-15
Author: 62605255+pchauchat@users.noreply.github.com
File Name: examples/kalman_filter.py
Class Name: KalmanFilter
Method Name: initialize_covariances


Project Name: Microsoft/nni
Commit Name: 10d7ece1c34c5533262a54d20d974a3d04f0b7ce
Time: 2020-09-15
Author: 40699903+liuzhe-lz@users.noreply.github.com
File Name: src/sdk/pynni/nni/compression/tensorflow/compressor.py
Class Name:
Method Name: _instrument_model