Skip to content

Commit 79ae66d

Browse files
maxjeblickSeanNarentchatonedenlightning
authored
Initialize trainer with None (Lightning-AI#4847)
Co-authored-by: Sean Naren <[email protected]> Co-authored-by: chaton <[email protected]> Co-authored-by: edenlightning <[email protected]>
1 parent aeaa6b2 commit 79ae66d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/accelerators/ddp_accelerator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
class DDPAccelerator(Accelerator):
4141

42-
def __init__(self, trainer, cluster_environment=None, ddp_plugin=None):
42+
def __init__(self, trainer=None, cluster_environment=None, ddp_plugin=None):
4343
"""
4444
Runs training using DDP strategy on a single machine (manually, not via cluster start)
4545

0 commit comments

Comments
 (0)