Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed May 28, 2023
1 parent c12b84f commit 64763e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tests_pytorch/trainer/test_dataloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,6 @@ def on_train_end(self):


@RunIf(standalone=True)
@patch.dict(os.environ, {}, clear=True)
def test_distributed_sampler_without_global_seed(tmpdir):
"""Test that the samples are non-overlapping in DDP when shuffling is enabled and no global seed is set."""
# This test must run without a global seed set (e.g. through `seed_everything`), to ensure that each process
Expand All @@ -828,6 +827,7 @@ def test_distributed_sampler_without_global_seed(tmpdir):
train_dataloader = DataLoader(range(32), shuffle=True, batch_size=4)
trainer = Trainer(
default_root_dir=tmpdir,
num_sanity_val_steps=False,
logger=False,
enable_progress_bar=False,
accelerator="cpu",
Expand Down

0 comments on commit 64763e8

Please sign in to comment.