From 79ae66d02652128bc783e576692d9d3bc39fb85c Mon Sep 17 00:00:00 2001 From: maxjeblick Date: Tue, 8 Dec 2020 18:19:55 +0100 Subject: [PATCH] Initialize trainer with None (#4847) Co-authored-by: Sean Naren Co-authored-by: chaton Co-authored-by: edenlightning <66261195+edenlightning@users.noreply.github.com> --- pytorch_lightning/accelerators/ddp_accelerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytorch_lightning/accelerators/ddp_accelerator.py b/pytorch_lightning/accelerators/ddp_accelerator.py index 687b5c21874fb..4c2754f4049bd 100644 --- a/pytorch_lightning/accelerators/ddp_accelerator.py +++ b/pytorch_lightning/accelerators/ddp_accelerator.py @@ -39,7 +39,7 @@ class DDPAccelerator(Accelerator): - def __init__(self, trainer, cluster_environment=None, ddp_plugin=None): + def __init__(self, trainer=None, cluster_environment=None, ddp_plugin=None): """ Runs training using DDP strategy on a single machine (manually, not via cluster start)