We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63af7cc commit b8941a3Copy full SHA for b8941a3
src/pydvl/utils/parallel/backend.py
@@ -136,9 +136,8 @@ def __init__(self, config: ParallelConfig):
136
config_dict.pop("backend")
137
config_dict["num_cpus"] = config_dict.pop("n_local_workers")
138
self.config = config_dict
139
- if self.config["address"] is None:
140
- self.config["ignore_reinit_error"] = True
141
- ray.init(**self.config)
+ if not ray.is_initialized():
+ ray.init(**self.config)
142
143
def get(
144
self,
0 commit comments