5b83fcf8d524cab79fbb3195653ae824fafc737c,test/priors/test_lkj_prior.py,TestLKJPrior,test_lkj_prior_log_prob_cuda,#TestLKJPrior#,40

Before Change



    def test_lkj_prior_log_prob_cuda(self):
        if torch.cuda.is_available():
            return self.test_lkj_prior_log_prob(cuda=True)

    def test_lkj_prior_batch_log_prob(self, cuda=False):
        device = torch.device("cuda") if cuda else torch.device("cpu")
        prior = LKJPrior(2, torch.tensor([0.5, 1.5], device=device))

After Change



    def test_lkj_prior_log_prob_cuda(self):
        if torch.cuda.is_available():
            with least_used_cuda_device():
                self.test_lkj_prior_log_prob(cuda=True)

    def test_lkj_prior_batch_log_prob(self, cuda=False):
        device = torch.device("cuda") if cuda else torch.device("cpu")
        prior = LKJPrior(2, torch.tensor([0.5, 1.5], device=device))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 3

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 5b83fcf8d524cab79fbb3195653ae824fafc737c
Time: 2019-02-12
Author: balandat@fb.com
File Name: test/priors/test_lkj_prior.py
Class Name: TestLKJPrior
Method Name: test_lkj_prior_log_prob_cuda


Project Name: cornellius-gp/gpytorch
Commit Name: 5b83fcf8d524cab79fbb3195653ae824fafc737c
Time: 2019-02-12
Author: balandat@fb.com
File Name: test/priors/test_lkj_prior.py
Class Name: TestLKJCholeskyFactorPrior
Method Name: test_lkj_cholesky_factor_prior_log_prob_cuda


Project Name: cornellius-gp/gpytorch
Commit Name: 5b83fcf8d524cab79fbb3195653ae824fafc737c
Time: 2019-02-12
Author: balandat@fb.com
File Name: test/priors/test_lkj_prior.py
Class Name: TestLKJCholeskyFactorPrior
Method Name: test_lkj_cholesky_factor_prior_batch_log_prob_cuda


Project Name: cornellius-gp/gpytorch
Commit Name: 5b83fcf8d524cab79fbb3195653ae824fafc737c
Time: 2019-02-12
Author: balandat@fb.com
File Name: test/priors/test_lkj_prior.py
Class Name: TestLKJPrior
Method Name: test_lkj_prior_batch_log_prob_cuda


Project Name: cornellius-gp/gpytorch
Commit Name: 5b83fcf8d524cab79fbb3195653ae824fafc737c
Time: 2019-02-12
Author: balandat@fb.com
File Name: test/priors/test_lkj_prior.py
Class Name: TestLKJCovariancePrior
Method Name: test_lkj_covariance_prior_log_prob_cuda


Project Name: cornellius-gp/gpytorch
Commit Name: 5b83fcf8d524cab79fbb3195653ae824fafc737c
Time: 2019-02-12
Author: balandat@fb.com
File Name: test/priors/test_lkj_prior.py
Class Name: TestLKJCovariancePrior
Method Name: test_lkj_covariance_prior_log_prob_hetsd_cuda


Project Name: cornellius-gp/gpytorch
Commit Name: 5b83fcf8d524cab79fbb3195653ae824fafc737c
Time: 2019-02-12
Author: balandat@fb.com
File Name: test/priors/test_lkj_prior.py
Class Name: TestLKJCovariancePrior
Method Name: test_lkj_covariance_prior_batch_log_prob_cuda