d373facb5c282092776f4bcef09ec925d3a651e3,gpytorch/kernels/kernel.py,Kernel,__call__,#Kernel#Any#Any#,37
Before Change
if self.active_dims is not None:
x1 = x1_[:, self.active_dims]
if x2_ is not None:
x2 = x2_[:, self.active_dims]
else:
x1 = x1_
x2 = x2_
After Change
def __call__(self, x1_, x2_=None, **params):
if self.active_dims is not None:
x1 = x1_.index_select(-1, self.active_dims)
if x2_ is not None:
x2 = x2_.index_select(-1, self.active_dims)
else:
x1 = x1_
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
Instances Project Name: cornellius-gp/gpytorch
Commit Name: d373facb5c282092776f4bcef09ec925d3a651e3
Time: 2018-06-19
Author: gardner.jake@gmail.com
File Name: gpytorch/kernels/kernel.py
Class Name: Kernel
Method Name: __call__
Project Name: cornellius-gp/gpytorch
Commit Name: 020d3d6dfa1bbcc13f7f7f0a833f57bb2cc8ef9d
Time: 2018-07-03
Author: balandat@fb.com
File Name: gpytorch/kernels/kernel.py
Class Name: Kernel
Method Name: __call__
Project Name: pytorch/audio
Commit Name: f5f79d1d5756240854bd524a55fb5d34180473fa
Time: 2019-11-18
Author: vincentqb@users.noreply.github.com
File Name: torchaudio/functional.py
Class Name:
Method Name: phase_vocoder
Project Name: elbayadm/attn2d
Commit Name: 9012e87d36a5f88cc3894508688d4328bbfd3abe
Time: 2019-08-02
Author: dnn@fb.com
File Name: fairseq/modules/sinusoidal_positional_embedding.py
Class Name: SinusoidalPositionalEmbedding
Method Name: forward