84fafd4599e29c68e63b90a38b56fcc65f289288,test/functions/test_inv_quad_log_det.py,TestInvQuadLogDetNonBatch,test_inv_quad_only_many_vectors,#TestInvQuadLogDetNonBatch#,108

Before Change


        // Forward pass
        res = NonLazyTensor(self.mat).inv_quad(self.vecs)
        actual = self.mat_clone.inverse().matmul(self.vecs_clone).mul(self.vecs_clone).sum()
        self.assertAlmostEqual(res.item(), actual.item(), places=1)

        // Backward
        actual.backward()
        res.backward()

After Change


        self._test_inv_quad_logdet(inv_quad_rhs=rhs, logdet=True, improper_logdet=True)

    def test_inv_quad_only_many_vectors(self):
        rhs = torch.randn(*self.matrix_shape[:-1], 5)
        self._test_inv_quad_logdet(inv_quad_rhs=rhs, logdet=False)


class TestInvQuadLogDetBatch(TestInvQuadLogDetNonBatch):
    seed = 0
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 84fafd4599e29c68e63b90a38b56fcc65f289288
Time: 2019-03-25
Author: gpleiss@gmail.com
File Name: test/functions/test_inv_quad_log_det.py
Class Name: TestInvQuadLogDetNonBatch
Method Name: test_inv_quad_only_many_vectors


Project Name: cornellius-gp/gpytorch
Commit Name: 84fafd4599e29c68e63b90a38b56fcc65f289288
Time: 2019-03-25
Author: gpleiss@gmail.com
File Name: test/functions/test_inv_quad_log_det.py
Class Name: TestInvQuadLogDetNonBatch
Method Name: test_inv_quad_logdet_many_vectors


Project Name: cornellius-gp/gpytorch
Commit Name: 84fafd4599e29c68e63b90a38b56fcc65f289288
Time: 2019-03-25
Author: gpleiss@gmail.com
File Name: test/functions/test_inv_quad_log_det.py
Class Name: TestInvQuadLogDetNonBatch
Method Name: test_inv_quad_logdet_many_vectors_improper