a852f08fcf6679826771992fcf162c3691dff187,kymatio/scattering2d/tests/test_scattering2d.py,,,#,11

Before Change


from kymatio.scattering2d import backend


if torch.cuda.is_available():
    devices = ["cuda", "cpu"]
else:
    devices = ["cpu"]


def reorder_coefficients_from_interleaved(J, L):
    // helper function to obtain positions of order0, order1, order2 from interleaved
    order0, order1, order2 = [], [], []
    n_order0, n_order1, n_order2 = 1, J * L, L ** 2 * J * (J - 1) // 2

After Change




devices = ["cpu"]
if torch.cuda.is_available():
    devices.append("cuda")

def reorder_coefficients_from_interleaved(J, L):
    // helper function to obtain positions of order0, order1, order2 from interleaved
    order0, order1, order2 = [], [], []
    n_order0, n_order1, n_order2 = 1, J * L, L ** 2 * J * (J - 1) // 2
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: kymatio/kymatio
Commit Name: a852f08fcf6679826771992fcf162c3691dff187
Time: 2020-02-18
Author: janden@flatironinstitute.org
File Name: kymatio/scattering2d/tests/test_scattering2d.py
Class Name:
Method Name:


Project Name: kymatio/kymatio
Commit Name: a852f08fcf6679826771992fcf162c3691dff187
Time: 2020-02-18
Author: janden@flatironinstitute.org
File Name: kymatio/scattering2d/tests/test_torch_scattering2d.py
Class Name:
Method Name:


Project Name: kymatio/kymatio
Commit Name: 45bc77266ba893c3ec65cc8661a1b66abe354671
Time: 2018-12-14
Author: janden@flatironinstitute.org
File Name: kymatio/scattering3d/tests/test_scattering3d.py
Class Name:
Method Name: