Skip to content

Commit

Permalink
fix 1.9 test (#7441)
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli authored May 8, 2021
1 parent 987530c commit 1af42d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/trainer/test_dataloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,12 @@ def _user_worker_init_fn(_):
pass


@RunIf(max_torch="1.8.9")
def test_missing_worker_init_fn():
""" Test that naive worker seed initialization leads to undesired random state in subprocesses. """
"""
Test that naive worker seed initialization leads to undesired random state in subprocesses.
PyTorch 1.9+ does not have this issue.
"""
dataset = NumpyRandomDataset()

seed_everything(0)
Expand Down

0 comments on commit 1af42d7

Please sign in to comment.