6d781d6720bcaeb5aa75874180e5d636e9f4248f,scattering/scattering1d/backend/backend_torch.py,,modulus_complex,#Any#,250

Before Change


    
    // take the stable modulus
    real = modulus(x)
    imag = real.data.new(real.shape).fill_(0.)
    res = torch.cat([real.unsqueeze(-1), imag.unsqueeze(-1)], dim=-1)
    return res

After Change


    // take the stable modulus
    norm = modulus(x)

    res = torch.zeros_like(x)
    res[...,0] = norm

    return res
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: kymatio/kymatio
Commit Name: 6d781d6720bcaeb5aa75874180e5d636e9f4248f
Time: 2018-11-21
Author: janden@flatironinstitute.org
File Name: scattering/scattering1d/backend/backend_torch.py
Class Name:
Method Name: modulus_complex


Project Name: kymatio/kymatio
Commit Name: 094c57ce94fc70c11032c08ae7322532b02e616b
Time: 2018-11-21
Author: janden@flatironinstitute.org
File Name: scattering/scattering1d/backend/backend_skcuda.py
Class Name:
Method Name: pad


Project Name: kymatio/kymatio
Commit Name: 094c57ce94fc70c11032c08ae7322532b02e616b
Time: 2018-11-21
Author: janden@flatironinstitute.org
File Name: scattering/scattering1d/backend/backend_torch.py
Class Name:
Method Name: pad