Skip to content

Commit

Permalink
Speed up slow input constructor test (#2564)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #2564

Differential Revision: D63838676
  • Loading branch information
esantorella authored and facebook-github-bot committed Oct 3, 2024
1 parent e9c7eb5 commit 34776f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/acquisition/test_input_constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
from botorch.models.deterministic import FixedSingleSampleModel
from botorch.models.model_list_gp_regression import ModelListGP
from botorch.sampling.normal import IIDNormalSampler, SobolQMCNormalSampler
from botorch.test_utils.mock import fast_optimize
from botorch.utils.constraints import get_outcome_constraint_transforms
from botorch.utils.datasets import SupervisedDataset
from botorch.utils.multi_objective.box_decompositions.non_dominated import (
Expand Down Expand Up @@ -1845,6 +1846,7 @@ def setUp(self, suppress_input_warnings: bool = True) -> None:
},
)

@fast_optimize
def test_constructors_can_instantiate(self) -> None:
for key, (classes, input_constructor_kwargs) in self.cases.items():
with self.subTest(
Expand Down

0 comments on commit 34776f7

Please sign in to comment.