4053ced2e597263ffe1c439bca8ca46e7b798cd2,gpytorch/lazy/lazy_evaluated_kernel_tensor.py,LazyEvaluatedKernelTensor,diag,#LazyEvaluatedKernelTensor#,152

Before Change



        if not self.is_batch:
            x1 = self.x1.unsqueeze(0)
            x2 = self.x2.unsqueeze(0)
        else:
            x1 = self.x1
            x2 = self.x2

After Change


        // TODO: until kernels support multi-batch mode, we have to remove any artificial batch dimension
        // that we"ve added
        if not is_batch:
            x1 = x1.squeeze(0)
            x2 = x2.squeeze(0)
            res = res.squeeze(0)

        // Did this Kernel eat the diag option?
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 4053ced2e597263ffe1c439bca8ca46e7b798cd2
Time: 2019-03-18
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/lazy_evaluated_kernel_tensor.py
Class Name: LazyEvaluatedKernelTensor
Method Name: diag


Project Name: facebookresearch/SentEval
Commit Name: 9b1126c25af2105531505d8a3c864f3221c61fac
Time: 2018-05-06
Author: aconneau@fb.com
File Name: examples/models.py
Class Name: BLSTMEncoder
Method Name: forward


Project Name: pytorch/audio
Commit Name: fcc9a51a9267a13e142138974ae3050bf94b2163
Time: 2020-03-24
Author: dorazzsoft@gmail.com
File Name: torchaudio/functional.py
Class Name:
Method Name: istft