278bc3b0dfa36226d8818809e54f80edf14643a1,kymatio/scattering3d/backend/backend_skcuda.py,,complex_modulus,#Any#,15

Before Change




def complex_modulus(input_array):
    raise NotImplementedError(skcuda_notimplementederror)


def fft(input, inverse=False):
    

After Change




def complex_modulus(input_array):
    modulus = torch.zeros_like(input_array)
    modulus[..., 0] += torch.sqrt((input_array ** 2).sum(-1))
    return modulus


def fft(input, inverse=False):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: kymatio/kymatio
Commit Name: 278bc3b0dfa36226d8818809e54f80edf14643a1
Time: 2018-12-14
Author: biboundai@homail.fr
File Name: kymatio/scattering3d/backend/backend_skcuda.py
Class Name:
Method Name: complex_modulus


Project Name: facebookresearch/Horizon
Commit Name: 96f486bd47be8baad365a32fd34d22881fdafa95
Time: 2020-07-30
Author: czxttkl@fb.com
File Name: reagent/training/ranking/seq2slate_sim_trainer.py
Class Name: Seq2SlateSimulationTrainer
Method Name: _simulated_training_input


Project Name: scikit-image/scikit-image
Commit Name: a346268a461ef2a403ed8e8da6e9e446c741e75b
Time: 2017-10-25
Author: jni.soma@gmail.com
File Name: skimage/measure/_moments.py
Class Name:
Method Name: moments_normalized