Skip to content

Commit a76e527

Browse files
committed
modify train_ray.py for compatibility
1 parent af57234 commit a76e527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/data/ray_cartpole/train_ray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
config["num_gpus"] = int(os.environ.get("SM_NUM_GPUS", 0))
1111
checkpoint_dir = os.environ.get("SM_MODEL_DIR", "/Users/nadzeya/gym")
1212
config["num_workers"] = 1
13-
agent = ppo.PPOAgent(config=config, env="CartPole-v0")
13+
agent = ppo.PPOTrainer(config=config, env="CartPole-v0")
1414

1515
# Can optionally call agent.restore(path) to load a checkpoint.
1616

0 commit comments

Comments
 (0)