Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The use of close() in shmem_vec_env #1208

Open
dwyzzy opened this issue Nov 22, 2022 · 0 comments
Open

The use of close() in shmem_vec_env #1208

dwyzzy opened this issue Nov 22, 2022 · 0 comments

Comments

@dwyzzy
Copy link

dwyzzy commented Nov 22, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant