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"]

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Create the `Scattering1D` object using the given parameters and generate
// some compatible test data with the specified batch size.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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: lufficc/SSD
Commit Name: b65560304dc61e63fa45e5a26fee930661c6e998
Time: 2019-06-23
Author: luffy.lcc@gmail.com
File Name: ssd/engine/trainer.py
Class Name:
Method Name: do_train


Project Name: LCAV/pyroomacoustics
Commit Name: 8ae12f01ffdb6d510181399ee34552bc7f541bc0
Time: 2017-02-20
Author: fakufaku@gmail.com
File Name: examples/room_3d.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: