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


        // 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: 2

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: NifTK/NiftyNet
Commit Name: 09f72ac06873b4069b8fddad769be3f1148a5791
Time: 2017-08-10
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/application/segmentation_application.py
Class Name: SegmentationApplication
Method Name: initialise_dataset_loader


Project Name: NifTK/NiftyNet
Commit Name: 09f72ac06873b4069b8fddad769be3f1148a5791
Time: 2017-08-10
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_reader.py
Class Name: ImageReader
Method Name: initialise_reader