From 0181fe79a5915791a8d22112dfedc905b6169cf8 Mon Sep 17 00:00:00 2001 From: Zodan Jodan <42038325+5cat@users.noreply.github.com> Date: Tue, 4 Oct 2022 00:41:31 +0000 Subject: [PATCH] fix docs tictactoc dummy vector env #669 (#749) a fix for #669 --- docs/tutorials/tictactoe.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/tutorials/tictactoe.rst b/docs/tutorials/tictactoe.rst index 7031b5dc2..84460bddd 100644 --- a/docs/tutorials/tictactoe.rst +++ b/docs/tutorials/tictactoe.rst @@ -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 )