From c09c9c760760859a101088ab54b61f933fee53c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20W=C3=A4lchli?= Date: Fri, 19 Nov 2021 07:49:52 +0100 Subject: [PATCH] Remove redundant fit call from accelerator connector test (#10626) --- tests/accelerators/test_accelerator_connector.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/accelerators/test_accelerator_connector.py b/tests/accelerators/test_accelerator_connector.py index c789e86c16..a9c9c50d80 100644 --- a/tests/accelerators/test_accelerator_connector.py +++ b/tests/accelerators/test_accelerator_connector.py @@ -350,7 +350,6 @@ def test_accelerator_choice_ddp_cpu_and_strategy_spawn(tmpdir): def _test_accelerator_choice_ddp_cpu_and_strategy(tmpdir, ddp_strategy_class): - model = BoringModel() trainer = Trainer( default_root_dir=tmpdir, strategy=ddp_strategy_class(find_unused_parameters=True), @@ -362,7 +361,6 @@ def _test_accelerator_choice_ddp_cpu_and_strategy(tmpdir, ddp_strategy_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(