openai / coinrun

Code for the paper "Quantifying Transfer in Reinforcement Learning"
https://blog.openai.com/quantifying-generalization-in-reinforcement-learning/
MIT License
395 stars 88 forks source link

How to reset the environment? #37

Closed SuiJiGuoChengSuiJiGuo closed 5 years ago

SuiJiGuoChengSuiJiGuo commented 5 years ago

Hi Team, I am trying to read the code of this project, but when I read the ppo2.py, I have a little doubt about class Runner. I can't distinguish when will environments reset in the function run(). And if one of the environments in parallel will done, what about others will be? thanks

christopherhesse commented 5 years ago

In the VecEnv interface, each instance of the environment resets itself on done, so there should be no need for Runner to call venv.reset()