mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 19:20:19 +01:00
Making stop condition optional by using a flag (#113)
* apply stop condition flag (default: ignore the stop condition)
This commit is contained in:
@@ -669,4 +669,4 @@ class GraphManager(object):
|
||||
self.memory_backend = get_memory_backend(self.agent_params.memory.memory_backend_params)
|
||||
|
||||
def should_stop(self) -> bool:
|
||||
return all([manager.should_stop() for manager in self.level_managers])
|
||||
return self.task_parameters.apply_stop_condition and all([manager.should_stop() for manager in self.level_managers])
|
||||
|
||||
Reference in New Issue
Block a user