parameters: (self, ddp, divide_by_initial_world_size)
docstring: Sets config variables for internal usage.
docstring_summary: Sets config variables for internal usage.
docstring_tokens: Sets config variables for internal usage .
function: def __init__(self, ddp, divide_by_initial_world_size):
          """
          Sets config variables for internal usage.
          """
          assert isinstance(ddp, DistributedDataParallel), (
              "DDP join hook requires passing in a DistributedDataParallel "
              "instance as the state"
          )
          ddp.logger._set_uneven_input_join()
          self.ddp = ddp
          self.ddp._divide_by_initial_world_size = divide_by_initial_world_size
          super().__init__()
function_tokens: def __init__ ( self , ddp , divide_by_initial_world_size ) : assert isinstance ( ddp , DistributedDataParallel ) , ( "DDP join hook requires passing in a DistributedDataParallel " "instance as the state" ) ddp . logger . _set_uneven_input_join ( ) self . ddp = ddp self . ddp . _divide_by_initial_world_size = divide_by_initial_world_size super ( ) . __init__ ( )