Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
markub3327 committed Nov 18, 2023
1 parent 2d07b06 commit 60066d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rl_toolkit/networks/models/dueling.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def _compute_n_step_rewards(

# Add the next state value with discount
n_step_rewards += (
(1.0 - is_terminal[:, tf.newaxis])
(1.0 - is_terminal)
* tf.reverse(discounts[1:], axis=[0])[tf.newaxis, :]
* next_state_value[:, tf.newaxis]
)
Expand Down

0 comments on commit 60066d7

Please sign in to comment.