d0eddfd7882f053bd6d6b6a7b0305f5c42d5d39f,benchmark.py,,,#,89

Before Change




if __name__ == "__main__":
    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")

After Change


        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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: facebookresearch/ParlAI
Commit Name: 7d1a2eae1bd9776a8ebfc6cf379d2d47bafc3da6
Time: 2017-06-21
Author: ahm@fb.com
File Name: parlai/core/params.py
Class Name: ParlaiParser
Method Name: parse_args


Project Name: dnouri/skorch
Commit Name: e70c008f4184ab91412e6b40987e6bb2944384e7
Time: 2018-05-02
Author: benjamin.bossan@ottogroup.com
File Name: skorch/net.py
Class Name: NeuralNet
Method Name: set_params