2525cc3906a97436d2abdccf3bdc2decb7bf0ac0,gpytorch/lazy/lazy_variable.py,LazyVariable,matmul,#LazyVariable#Any#,410

Before Change


        elif self.ndimension() > 3 or tensor.ndimension() > 3:
            raise RuntimeError

        args = list(lazy_var.representation()) + [tensor]
        return lazy_var._matmul_class()(*args)

    def mul(self, other):
        
        Multiplies the matrix by a constant, or elementwise the matrix by another matrix

After Change


            raise RuntimeError

        func = Matmul(self.representation_tree())
        return func(tensor, *self.representation())

    def mul(self, other):
        
        Multiplies the matrix by a constant, or elementwise the matrix by another matrix
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 2525cc3906a97436d2abdccf3bdc2decb7bf0ac0
Time: 2018-04-30
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/lazy_variable.py
Class Name: LazyVariable
Method Name: matmul


Project Name: cornellius-gp/gpytorch
Commit Name: 2525cc3906a97436d2abdccf3bdc2decb7bf0ac0
Time: 2018-04-30
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/lazy_variable.py
Class Name: LazyVariable
Method Name: inv_matmul


Project Name: cornellius-gp/gpytorch
Commit Name: 7c5e80b3dc2187b5d67a45240ea9dc092114d131
Time: 2017-08-30
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/kronecker_product_lazy_variable.py
Class Name: KroneckerProductLazyVariable
Method Name: exact_gp_marginal_log_likelihood