Skip to content

Commit

Permalink
fix docs tictactoc dummy vector env #669 (#749)
Browse files Browse the repository at this point in the history
a fix for #669
  • Loading branch information
5cat authored Oct 4, 2022
1 parent 128feb6 commit 0181fe7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/tutorials/tictactoe.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 0181fe7

Please sign in to comment.