Skip to content

Commit 0d5fa6b

Browse files
committed
add back ray import
1 parent 306a01f commit 0d5fa6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/train.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ def on_episode_end(info):
255255

256256
def train_rllib(submodule, flags):
257257
"""Train policies using the PPO algorithm in RLlib."""
258+
import ray
259+
258260
flow_params = submodule.flow_params
259261
flow_params['sim'].render = flags.render
260262
policy_graphs = getattr(submodule, "POLICY_GRAPHS", None)

0 commit comments

Comments
 (0)