Skip to content

Commit

Permalink
Remove redundant fit call from accelerator connector test (#10626)
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Nov 24, 2021
1 parent ec7ba7a commit 0098f71
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/accelerators/test_accelerator_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,6 @@ def test_accelerator_choice_ddp_cpu_and_plugin_spawn(tmpdir):


def _test_accelerator_choice_ddp_cpu_and_plugin(tmpdir, ddp_plugin_class):

model = BoringModel()
trainer = Trainer(
default_root_dir=tmpdir,
plugins=[ddp_plugin_class(find_unused_parameters=True)],
Expand All @@ -349,7 +347,6 @@ def _test_accelerator_choice_ddp_cpu_and_plugin(tmpdir, ddp_plugin_class):
assert isinstance(trainer.accelerator, CPUAccelerator)
assert trainer.training_type_plugin.num_processes == 2
assert trainer.training_type_plugin.parallel_devices == [torch.device("cpu")] * 2
trainer.fit(model)


@mock.patch.dict(
Expand Down

0 comments on commit 0098f71

Please sign in to comment.