Skip to content

Commit

Permalink
Initialize trainer with None (Lightning-AI#4847)
Browse files Browse the repository at this point in the history
Co-authored-by: Sean Naren <sean.narenthiran@gmail.com>
Co-authored-by: chaton <thomas@grid.ai>
Co-authored-by: edenlightning <66261195+edenlightning@users.noreply.github.com>
  • Loading branch information
4 people committed Dec 8, 2020
1 parent aeaa6b2 commit 79ae66d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/accelerators/ddp_accelerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 79ae66d

Please sign in to comment.