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: 3
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: 9cd71e49416e5781fec596fb37cafdba833fe14c
Time: 2019-11-23
Author: adria.garriga@gmail.com
File Name: gpytorch/distributions/multivariate_normal.py
Class Name: MultivariateNormal
Method Name: __init__
Project Name: cornellius-gp/gpytorch
Commit Name: 63e4148c8095b9bf59dd0fbb8c280ae6ab8f9eb1
Time: 2018-07-19
Author: balandat@fb.com
File Name: gpytorch/priors/prior.py
Class Name: Prior
Method Name: shape