Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
albertbou92 committed Apr 26, 2024
1 parent 298dbee commit 34cf86c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/reinvent/reinvent.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ def create_env_fn():
# Add data to the replay buffer
reward = replay_data.get(("next", "reward"))
replay_data.set("priority", reward)
experience_replay_buffer.extend(replay_data)
if len(replay_data) > 0:
experience_replay_buffer.extend(replay_data)

# Log info
if logger:
Expand Down

0 comments on commit 34cf86c

Please sign in to comment.