docstr: A runner will contain `rank`, `backend` and `size` after setup_torch_distribute.
docstr_tok: ["A","runner","will","contain","`","rank","`",",","`","backend","`","and","`","size","`","after","setup_torch_distribute","."]
code: def _init_torch_ddp(
      self, tcp_store_host, tcp_store_port, world_rank, world_size
  ):
      """A runner will contain `rank`, `backend` and `size` after setup_torch_distribute."""
      import torch.distributed as dist
  
      client_store = dist.TCPStore(
          tcp_store_host,
          tcp_store_port,
          -1,
          False,
          timeout=dist.constants.default_pg_timeout,
      )
      dist.init_process_group(
          backend="gloo",
          store=client_store,
          rank=world_rank,
          world_size=world_size,
      )
      self.backend = "torch-distributed"
  
file_path: BigDL/python/orca/src/bigdl/orca/learn/pytorch/core/lifecycle.py
imports: from abc import abstractmethod, ABCMeta
  from torch.utils.data import DataLoader
  from torch.utils.data.distributed import DistributedSampler
label_desc: Use image node_id 7 for calling the LifeCycle obj's underlying member method code with example usage: obj._init_torch_ddp(tcp_store_host, tcp_store_port, world_rank, world_size) without return types