91eda80f9a542ce027ae77e861c9107182070b2d,kymatio/scattering3d/backend/torch_backend.py,,fft,#Any#Any#,96

Before Change


        raise TypeError("The input should be complex (e.g. last dimension is 2)")
    if inverse:
        return torch.ifft(input, 3)
    return torch.fft(input, 3)


def cdgmm3d(A, B, inplace=False):
    Complex pointwise multiplication.

After Change


    if not _is_complex(input):
        raise TypeError("The input should be complex (e.g. last dimension is 2)")
    if inverse:
        return torch.view_as_real(torch.fft.ifftn(torch.view_as_complex(input), dim=[-1, -2, -3]))
    return torch.view_as_real(torch.fft.fftn(torch.view_as_complex(input), dim=[-1, -2, -3]))


def cdgmm3d(A, B, inplace=False):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: kymatio/kymatio
Commit Name: 91eda80f9a542ce027ae77e861c9107182070b2d
Time: 2021-03-13
Author: edouard.oyallon@lip6.fr
File Name: kymatio/scattering3d/backend/torch_backend.py
Class Name:
Method Name: fft


Project Name: thunlp/OpenKE
Commit Name: 0ab6621dcd3e9cd97a257ea2d8d05b23bfba8609
Time: 2020-04-08
Author: thu.hanxu13@gmail.com
File Name: openke/module/model/HolE.py
Class Name: HolE
Method Name: _ccorr


Project Name: scipy/scipy
Commit Name: 7802b0ecddc965a104c7de1973434cc5427aae37
Time: 2019-07-16
Author: peterbell10@live.co.uk
File Name: scipy/fft/_basic.py
Class Name:
Method Name: fft