45bc77266ba893c3ec65cc8661a1b66abe354671,kymatio/scattering3d/tests/test_scattering3d.py,,test_larger_scales,#,151

Before Change


                assert err<1e-4

def test_larger_scales():
    if backend.NAME == "skcuda":
        warnings.warn(("The skcuda backend is not yet implemented for 3D "
            "scattering, but that"s ok (for now)."), RuntimeWarning,
            stacklevel=2)
        return

    shape = (32, 32, 32)
    L = 3
    sigma_0 = 1

After Change



    for J in range(3, 4+1):
        scattering = Scattering3D(J=J, shape=shape, L=L, sigma_0=sigma_0)
        if not "cpu" in devices:
            x = x.cuda()
            scattering.cuda()
        Sx = scattering(x, method="integral")

def test_scattering_methods():
    shape = (32, 32, 32)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


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: test_larger_scales


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: test_scattering_methods


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: test_cpu_cuda