d0eddfd7882f053bd6d6b6a7b0305f5c42d5d39f,benchmark.py,,,#,89

Before Change


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

After Change


        // 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: 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: hanxiao/bert-as-service
Commit Name: 129f293bc8e87ded5f3a4300b65e643b5e5ef9f0
Time: 2018-12-15
Author: hanhxiao@tencent.com
File Name: benchmark.py
Class Name:
Method Name:


Project Name: markovmodel/PyEMMA
Commit Name: 533026294dfe9f0f54b87b348d819d5c037aa619
Time: 2017-02-16
Author: m.scherer@fu-berlin.de
File Name: pyemma/util/annotators.py
Class Name:
Method Name: fix_docs