You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, Jonas. Thanks for sharing this great project. I am little confused on why we pickle the environment when creating the process in the MetaParallelEnvExecutor:
self.ps = [
Process(target=worker, args=(work_remote, remote, pickle.dumps(env), envs_per_task, max_path_length, seed))
for (work_remote, remote, seed) in zip(self.work_remotes, self.remotes, seeds)] # Why pass work remotes?
and then unpickle it in the process:
envs = [pickle.loads(env_pickle) for _ in range(n_envs)]
Why we do not just initialize the environment in the process worker, which eliminates the code for pickle and unpicke.
The text was updated successfully, but these errors were encountered:
Hi, Jonas. Thanks for sharing this great project. I am little confused on why we pickle the environment when creating the process in the
MetaParallelEnvExecutor
:and then unpickle it in the process:
Why we do not just initialize the environment in the process worker, which eliminates the code for pickle and unpicke.
The text was updated successfully, but these errors were encountered: