ray.rllib.env.env_runner.EnvRunner.make_env#

EnvRunner.make_env()[source]#

Creates the RL environment for this EnvRunner and assigns it to self.env.

Note that users should be able to change the EnvRunner’s config (e.g. change self.config.env_config) and then call this method to create new environments with the updated configuration. It should also be called after a failure of an earlier env in order to clean up the existing env (for example close() it), re-create a new one, and then continue sampling with that new env.