0ec12f6fccb07305de1fd75527f5c156dab3c772,gpytorch/kernels/spectral_mixture_kernel.py,SpectralMixtureKernel,forward,#SpectralMixtureKernel#Any#Any#Any#Any#,306
Before Change
// Product over dimensions
if last_dim_is_batch:
res = res.squeeze(-1)
else:
res = res.prod(-1)
// Sum over mixtures
After Change
// Product over dimensions
if last_dim_is_batch:
// Put feature-dimension in front of data1/data2 dimensions
res = res.permute(*list(range(0, res.dim() - 3)), -1, -3, -2)
else:
res = res.prod(-1)
return res
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
Instances
Project Name: cornellius-gp/gpytorch
Commit Name: 0ec12f6fccb07305de1fd75527f5c156dab3c772
Time: 2020-12-16
Author: gpleiss@gmail.com
File Name: gpytorch/kernels/spectral_mixture_kernel.py
Class Name: SpectralMixtureKernel
Method Name: forward
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: d3ac72d887c808a90948db469d8db2f364825992
Time: 2018-04-09
Author: M.N.Tran@ibm.com
File Name: src/classifiers/tensorflow.py
Class Name: TFClassifier
Method Name: class_gradient
Project Name: keras-team/keras
Commit Name: 55447cbb3d33c2c209fdad8a1d53a166bc39544e
Time: 2016-08-09
Author: farizrahman4u@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: squeeze
Project Name: dmlc/dgl
Commit Name: 2c489fadec58fd6be7f555897b222cdef31d98b5
Time: 2018-08-06
Author: minjie.wang@nyu.edu
File Name: python/dgl/scheduler.py
Class Name:
Method Name: degree_bucketing
Project Name: analysiscenter/batchflow
Commit Name: 682cf3701bfd4f92334b5de12140ac9915481a93
Time: 2017-12-08
Author: rhudor@gmail.com
File Name: dataset/batch_image.py
Class Name: ImagesBatch
Method Name: _resize_one