Skip to content

Commit

Permalink
model samplar_select
Browse files Browse the repository at this point in the history
  • Loading branch information
zcczhang committed Feb 28, 2024
1 parent 0129f37 commit cd192bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions allenact/algorithms/onpolicy_sync/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,9 @@ def collect_step_across_all_task_samplers(

npaused, keep, batch = self.remove_paused(observations)

if hasattr(self.actor_critic, "sampler_select"):
self.actor_critic.sampler_select(keep)

# TODO self.probe(...) can be useful for debugging (we might want to control it from main?)
# self.probe(dones, npaused)

Expand Down

0 comments on commit cd192bd

Please sign in to comment.