278bc3b0dfa36226d8818809e54f80edf14643a1,kymatio/scattering3d/backend/backend_skcuda.py,,to_complex,#Any#,11
Before Change
To perform 3D scattering, please set KYMATIO_BACKEND_3D=\"torch\".
def to_complex(input):
raise NotImplementedError(skcuda_notimplementederror)
def complex_modulus(input_array):
raise NotImplementedError(skcuda_notimplementederror)
After Change
def to_complex(input):
if iscomplex(input):
return input
output = input.new(input.size() + (2,)).fill_(0)
output[..., 0] = input
return output
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: to_complex
Project Name: cornellius-gp/gpytorch
Commit Name: 7e9154fdc79281420d027c7892c395946622ee40
Time: 2017-08-25
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/toeplitz_lazy_variable.py
Class Name: ToeplitzLazyVariable
Method Name: __getitem__
Project Name: cornellius-gp/gpytorch
Commit Name: 59d4a8b3bea3b5969f79b45456c8e594b617ce92
Time: 2017-11-13
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/lazy_variable.py
Class Name: LazyVariable
Method Name: add_jitter