Skip to content

Commit

Permalink
Fix flaky test (pytorch#2008)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#2008

This test failed model fitting during an internal CI run. Limiting it to a small set of random seeds to prevent future failures.

Reviewed By: Balandat

Differential Revision: D48974534

fbshipit-source-id: 97d5b816766b6c2a8caf392388f5a6965e252d6b
  • Loading branch information
saitcakmak authored and facebook-github-bot committed Sep 5, 2023
1 parent 626eb41 commit 873dbbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/models/test_pairwise_gp.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# LICENSE file in the root directory of this source tree.

import itertools
import random
import warnings
from typing import Dict, Tuple, Union

Expand Down Expand Up @@ -75,6 +76,7 @@ def _get_model_and_data(
return model, model_kwargs

def test_pairwise_gp(self) -> None:
torch.manual_seed(random.randint(0, 10))
for batch_shape, likelihood_cls in itertools.product(
(torch.Size(), torch.Size([2])),
(PairwiseLogitLikelihood, PairwiseProbitLikelihood),
Expand Down

0 comments on commit 873dbbb

Please sign in to comment.