Skip to content

Commit

Permalink
Clean up fast computations
Browse files Browse the repository at this point in the history
Summary: #1547 turned these off by default. No need to turn them off manually anymore.

Reviewed By: dme65, Balandat

Differential Revision: D42173976

fbshipit-source-id: 4d62006ad829135370b63e6582e1b69528a6ee45
  • Loading branch information
saitcakmak authored and facebook-github-bot committed Dec 22, 2022
1 parent 5066540 commit d7edf20
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions botorch/acquisition/cached_cholesky.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
from botorch.posteriors.gpytorch import GPyTorchPosterior
from botorch.posteriors.posterior import Posterior
from botorch.utils.low_rank import extract_batch_covar, sample_cached_cholesky
from gpytorch import settings as gpt_settings
from gpytorch.distributions.multitask_multivariate_normal import (
MultitaskMultivariateNormal,
)
Expand Down Expand Up @@ -93,8 +92,7 @@ def _compute_root_decomposition(
lazy_covar = extract_batch_covar(posterior.distribution)
else:
lazy_covar = posterior.distribution.lazy_covariance_matrix
with gpt_settings.fast_computations.covar_root_decomposition(False):
lazy_covar_root = lazy_covar.root_decomposition()
lazy_covar_root = lazy_covar.root_decomposition()
return lazy_covar_root.root.to_dense()

def _get_f_X_samples(self, posterior: GPyTorchPosterior, q_in: int) -> Tensor:
Expand Down

0 comments on commit d7edf20

Please sign in to comment.