1527c8c1e4b5cfa59703d7fd6c91d89310db9a15,kymatio/scattering2d/tests/test_scattering2d.py,,test_Scattering2D,#,37

Before Change


    // (which is how it"s now computed)

    o0, o1, o2 = reorder_coefficients_from_interleaved(J, L=8)
    reorder = torch.from_numpy(np.concatenate((o0, o1, o2)))
    S = S[..., reorder, :, :]

    pre_pad = data["pre_pad"]

    M = x.shape[2]

After Change


def test_Scattering2D():
    test_data_dir = os.path.dirname(__file__)

    with open(os.path.join(test_data_dir, "test_data_2d.npz"), "rb") as f:
        buffer = io.BytesIO(f.read())
        data = np.load(buffer)

    x = torch.from_numpy(data["x"])
    S = torch.from_numpy(data["Sx"])
    J = data["J"]
    pre_pad = data["pre_pad"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: kymatio/kymatio
Commit Name: 1527c8c1e4b5cfa59703d7fd6c91d89310db9a15
Time: 2020-02-18
Author: edouard.oyallon@ens.fr
File Name: kymatio/scattering2d/tests/test_scattering2d.py
Class Name:
Method Name: test_Scattering2D


Project Name: keras-team/keras
Commit Name: 7c84229f350b83ce397b8c65e52e333e99b6d19d
Time: 2019-03-04
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: variable


Project Name: kymatio/kymatio
Commit Name: 1527c8c1e4b5cfa59703d7fd6c91d89310db9a15
Time: 2020-02-18
Author: edouard.oyallon@ens.fr
File Name: kymatio/scattering2d/tests/test_torch_scattering2d.py
Class Name: TestScatteringTorch2D
Method Name: test_Scattering2D