Skip to content

Commit

Permalink
[RLlib] Fix APEX-DQN deprecated add_batch call (replace with add). (
Browse files Browse the repository at this point in the history
ray-project#33814)

Signed-off-by: elliottower <[email protected]>
  • Loading branch information
avnishn authored and elliottower committed Apr 22, 2023
1 parent 5bc1383 commit bf558f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rllib/algorithms/apex_dqn/apex_dqn.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def get_samples_and_store_to_replay_buffers(self):
batch = local_sampling_worker.sample()
actor_id = random.choice(self._replay_actor_manager.healthy_actor_ids())
self._replay_actor_manager.foreach_actor(
lambda actor: actor.add_batch(batch),
lambda actor: actor.add(batch),
remote_actor_ids=[actor_id],
timeout_seconds=0,
)
Expand Down

0 comments on commit bf558f2

Please sign in to comment.