def __init__(self, backend_config: BackendConfig, num_workers: int=1, num_cpus_per_worker: float=1, num_gpus_per_worker: float=0):
    self._backend_config = backend_config
    self._backend = self._backend_config.backend_cls()
    self._num_workers = num_workers
    self._num_cpus_per_worker = num_cpus_per_worker
    self._num_gpus_per_worker = num_gpus_per_worker
    self.worker_group = InactiveWorkerGroup()
def __init__(self, backend_config: BackendConfig, num_workers: int=1, num_cpus_per_worker: float=1, num_gpus_per_worker: float=0):
    self._backend_config = backend_config
    self._backend = self._backend_config.backend_cls()
    self._num_workers = num_workers
    self._num_cpus_per_worker = num_cpus_per_worker
    self._num_gpus_per_worker = num_gpus_per_worker
    self.worker_group = InactiveWorkerGroup()