mirror of
https://github.com/wassname/ray.git
synced 2026-07-20 12:40:20 +08:00
[RLlib] Issue 7401: In eval mode (if evaluation_episodes > 0), agent hangs if Env does not terminate. (#7448)
* Fix. * Rollback. * Fix issue 7421. * Fix.
This commit is contained in:
@@ -95,9 +95,9 @@ class MultiAgentSampleBatchBuilder:
|
||||
def total(self):
|
||||
"""Returns summed number of steps across all agent buffers."""
|
||||
|
||||
return sum(p.count for p in self.policy_builders.values())
|
||||
return sum(a.count for a in self.agent_builders.values())
|
||||
|
||||
def has_pending_data(self):
|
||||
def has_pending_agent_data(self):
|
||||
"""Returns whether there is pending unprocessed data."""
|
||||
|
||||
return len(self.agent_builders) > 0
|
||||
|
||||
Reference in New Issue
Block a user