fix docs tictactoc dummy vector env #669 (#749)

a fix for #669
This commit is contained in:
Zodan Jodan 2022-10-04 00:41:31 +00:00 committed by GitHub
parent 128feb677f
commit 0181fe79a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -428,6 +428,7 @@ With the above preparation, we are close to the first learned agent. The followi
agent_opponent: Optional[BasePolicy] = None,
) -> None:
env = get_env()
env = DummyVectorEnv([lambda: env])
policy, optim, agents = get_agents(
args, agent_learn=agent_learn, agent_opponent=agent_opponent
)