d4806006e851ba3acf9d11d17eac9e90d41f487e,gpytorch/lazy/chol_lazy_tensor.py,CholLazyTensor,inv_matmul,#CholLazyTensor#Any#Any#,46

Before Change



    def inv_matmul(self, right_tensor, left_tensor=None):
        with settings.fast_computations(solves=False):
            return super().inv_matmul(right_tensor, left_tensor=left_tensor)

    def inv_quad_logdet(self, inv_quad_rhs=None, logdet=False, reduce_inv_quad=True):
        if not self.is_square:
            raise RuntimeError(

After Change


    def inv_matmul(self, right_tensor, left_tensor=None):
        is_vector = right_tensor.ndim == 1
        if is_vector:
            right_tensor = right_tensor.unsqueeze(-1)
        res = self.root._cholesky_solve(right_tensor, upper=self.upper)
        if left_tensor is not None:
            res = left_tensor @ res
        if is_vector:
            res = res.squeeze(-1)
        return res

    def inv_quad(self, tensor, reduce_inv_quad=True):
        if self.root.upper:
            R = self.root._transpose_nonbatch().inv_matmul(tensor)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: d4806006e851ba3acf9d11d17eac9e90d41f487e
Time: 2020-07-17
Author: balandat@fb.com
File Name: gpytorch/lazy/chol_lazy_tensor.py
Class Name: CholLazyTensor
Method Name: inv_matmul


Project Name: cornellius-gp/gpytorch
Commit Name: bf0f2522e94291480173889600ee9fd903c3d4f2
Time: 2018-05-02
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/non_lazy_variable.py
Class Name: NonLazyVariable
Method Name: diag


Project Name: rlworkgroup/garage
Commit Name: f056fb8f6226c83d340c869e0d5312d61acf07f0
Time: 2021-03-23
Author: 41180126+krzentner@users.noreply.github.com
File Name: src/garage/torch/q_functions/discrete_dueling_cnn_q_function.py
Class Name: DiscreteDuelingCNNQFunction
Method Name: forward