'Policy' argument doesn't exist (#11276)

policy argument doesn't exist anymore and has been renamed to policy_class
This commit is contained in:
Pierre TASSEL
2020-10-08 11:42:21 -07:00
committed by GitHub
parent bd9619e207
commit 8d6a2774ef
+1 -1
View File
@@ -564,7 +564,7 @@ Here is an example of creating a set of rollout workers and using them gather ex
env = gym.make("CartPole-v0")
policy = CustomPolicy(env.observation_space, env.action_space, {})
workers = WorkerSet(
policy=CustomPolicy,
policy_class=CustomPolicy,
env_creator=lambda c: gym.make("CartPole-v0"),
num_workers=10)