From 0098f71bc28e5f96814b9f544968f98418d7576a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20W=C3=A4lchli?= Date: Fri, 19 Nov 2021 12:56:39 +0100 Subject: [PATCH] Remove redundant fit call from accelerator connector test (#10626) --- tests/accelerators/test_accelerator_connector.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/accelerators/test_accelerator_connector.py b/tests/accelerators/test_accelerator_connector.py index 810f96bfdd08d..0ac22f5f204ba 100644 --- a/tests/accelerators/test_accelerator_connector.py +++ b/tests/accelerators/test_accelerator_connector.py @@ -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)], @@ -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(