1db4255e8b19a322434fa2fce398b73b5757f764,examples/1d/compute_speed.py,,,#,19

Before Change



    torch.cuda.synchronize()

    t_start = time.time()
    for _ in range(times):
        scattering(x_data)

    torch.cuda.synchronize()

    t_elapsed = time.time() - t_start

    fmt_str = "Elapsed time: {:2f} [s / {:d} evals], avg: {:.2f} (s/batch)"
    print(fmt_str.format(t_elapsed, times, t_elapsed/times))

After Change



if backend.NAME == "torch":
    devices = ["cpu", "gpu"]
elif backend.NAME == "skcuda":
    devices = ["gpu"]

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: kymatio/kymatio
Commit Name: 1db4255e8b19a322434fa2fce398b73b5757f764
Time: 2018-11-21
Author: janden@flatironinstitute.org
File Name: examples/1d/compute_speed.py
Class Name:
Method Name:


Project Name: SeanNaren/deepspeech.pytorch
Commit Name: ca27a9b77e569c8c990e890acb6f8f540d2d99c4
Time: 2017-10-27
Author: seannaren@hotmail.com
File Name: transcribe.py
Class Name:
Method Name:


Project Name: kymatio/kymatio
Commit Name: 1db4255e8b19a322434fa2fce398b73b5757f764
Time: 2018-11-21
Author: janden@flatironinstitute.org
File Name: examples/1d/compute_speed.py
Class Name:
Method Name:


Project Name: pytorch/examples
Commit Name: 01d70cd14b2bd9f1754b94e03c3555ec412a3845
Time: 2020-02-12
Author: rvarm1@fb.com
File Name: distributed/rpc/parameter_server/rpc_param_server.py
Class Name:
Method Name: