1f74c8946890369c33f9584eeb00a1ac7c6f33ea,test/functions/test_root_decomposition.py,TestRootDecomposition,test_root_inv_decomposition,#TestRootDecomposition#,44

Before Change


        // Forward
        probe_vectors = torch.randn(4, 5)
        test_vectors = torch.randn(4, 5)
        root = NonLazyTensor(self.mat).root_inv_decomposition(probe_vectors, test_vectors)
        res = root.matmul(root.transpose(-1, -2))
        actual = self.mat_clone.inverse()
        self.assertTrue(approx_equal(res, actual))

After Change


        // Forward
        probe_vectors = torch.randn(4, 5)
        test_vectors = torch.randn(4, 5)
        root = NonLazyTensor(self.mat).root_inv_decomposition(probe_vectors, test_vectors).root.evaluate()
        res = root.matmul(root.transpose(-1, -2))
        actual = self.mat_clone.inverse()
        self.assertTrue(approx_equal(res, actual))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 1f74c8946890369c33f9584eeb00a1ac7c6f33ea
Time: 2018-11-14
Author: jrg365@cornell.edu
File Name: test/functions/test_root_decomposition.py
Class Name: TestRootDecomposition
Method Name: test_root_inv_decomposition


Project Name: cornellius-gp/gpytorch
Commit Name: 1f74c8946890369c33f9584eeb00a1ac7c6f33ea
Time: 2018-11-14
Author: jrg365@cornell.edu
File Name: test/functions/test_root_decomposition.py
Class Name: TestRootDecompositionMultiBatch
Method Name: test_root_inv_decomposition


Project Name: cornellius-gp/gpytorch
Commit Name: 1f74c8946890369c33f9584eeb00a1ac7c6f33ea
Time: 2018-11-14
Author: jrg365@cornell.edu
File Name: gpytorch/lazy/lazy_tensor.py
Class Name: LazyTensor
Method Name: exact_predictive_covar


Project Name: cornellius-gp/gpytorch
Commit Name: 1f74c8946890369c33f9584eeb00a1ac7c6f33ea
Time: 2018-11-14
Author: jrg365@cornell.edu
File Name: test/functions/test_root_decomposition.py
Class Name: TestRootDecompositionBatch
Method Name: test_root_inv_decomposition