Initialize trainer with None (#4847)

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>
This commit is contained in:
maxjeblick 2020-12-08 18:19:55 +01:00 committed by GitHub
parent aeaa6b2d4f
commit 79ae66d026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ if HYDRA_AVAILABLE:
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)