e95aef6716ee8b2e0b647468ffe7f5bf37d4ce47,gpytorch/lazy/lazy_tensor.py,LazyTensor,_mul_matrix,#LazyTensor#Any#,423

Before Change


            :obj:`gpytorch.lazy.LazyTensor`
        
        from .mul_lazy_tensor import MulLazyTensor
        return MulLazyTensor(self, other).evaluate_kernel()

    def _preconditioner(self):
        
        (Optional) define a preconditioner (P) for linear conjugate gradients

After Change


        self = self.evaluate_kernel()
        other = other.evaluate_kernel()
        if isinstance(self, NonLazyTensor) or isinstance(other, NonLazyTensor):
            return NonLazyTensor(self.evaluate() * other.evaluate())
        else:
            left_lazy_tensor = self if self.root_decomposition_size() < other.root_decomposition_size() else other
            right_lazy_tensor = other if left_lazy_tensor is self else self
            return MulLazyTensor(left_lazy_tensor.root_decomposition(), right_lazy_tensor.root_decomposition())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: e95aef6716ee8b2e0b647468ffe7f5bf37d4ce47
Time: 2019-03-18
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/lazy_tensor.py
Class Name: LazyTensor
Method Name: _mul_matrix


Project Name: cornellius-gp/gpytorch
Commit Name: c297997741e9f6bdcf8b4fb1f3932a8aee442132
Time: 2018-09-27
Author: gpleiss@gmail.com
File Name: gpytorch/functions/__init__.py
Class Name:
Method Name: add_diag


Project Name: cornellius-gp/gpytorch
Commit Name: 3dc87b4b5acb725ee7fffd922e5ade56d585f3b6
Time: 2018-09-27
Author: gpleiss@gmail.com
File Name: gpytorch/functions/__init__.py
Class Name:
Method Name: add_diag