Skip to content

Commit 1dcd115

Browse files
saitcakmakfacebook-github-bot
authored andcommitted
Fix seed in test_ModelListGP_fixed_noise (#2774)
Summary: Pull Request resolved: #2774 As titled. This fails on GPU without the seed. Reviewed By: dme65 Differential Revision: D71323337 fbshipit-source-id: b2be9e8a79b130225fa3b4520350f16a86c9188a
1 parent 01aa45e commit 1dcd115

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/models/test_model_list_gp_regression.py

+1
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ def test_ModelListGP(self) -> None:
261261
)
262262

263263
def test_ModelListGP_fixed_noise(self) -> None:
264+
torch.manual_seed(0)
264265
for dtype, outcome_transform in itertools.product(
265266
(torch.float, torch.double), ("None", "Standardize")
266267
):

0 commit comments

Comments
 (0)