Skip to content

Commit

Permalink
[RLlib] fix an example (ray-project#34325)
Browse files Browse the repository at this point in the history
Signed-off-by: Rohan Potdar <[email protected]>
  • Loading branch information
Rohan138 committed Apr 25, 2023
1 parent 9a5c547 commit ce021b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rllib/examples/cartpole_lstm.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@
# >>
# >> while True:
# >> a, state_out, _ = algo.compute_single_action(
# .. obs, state, prev_a, prev_r)
# .. obs, state, prev_action=prev_a, prev_reward=prev_r
# .. )
# >> obs, reward, done, truncated, _ = env.step(a)
# >> if done:
# >> obs, info = env.reset()
Expand Down

0 comments on commit ce021b3

Please sign in to comment.