baselines icon indicating copy to clipboard operation
baselines copied to clipboard

The use of close() in shmem_vec_env

Open dwyzzy opened this issue 2 years ago • 0 comments

Hi! I'm wondering about the close() in shmem_vec_env.py

When initializing the Process, the code uses close() for parent_pipe

https://github.com/openai/baselines/blob/ea25b9e8b234e6ee1bca43083f8f3cf974143998/baselines/common/vec_env/shmem_vec_env.py#L120

After initializing the Process, the code uses close() for child_pipe

https://github.com/openai/baselines/blob/ea25b9e8b234e6ee1bca43083f8f3cf974143998/baselines/common/vec_env/shmem_vec_env.py#L57

So both child_pipe and parent_pipe use close()? How can we use pipe to communicate later?

Could you tell me why use close() here?

dwyzzy avatar Nov 22 '22 07:11 dwyzzy