mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-07-30 20:18:15 +00:00
Fix event callback
This commit is contained in:
parent
b64873ffff
commit
765d8fc5b2
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ class EventCallback(BaseCallback):
|
|||
|
||||
def _on_event(self) -> bool:
|
||||
if self.callback is not None:
|
||||
return self.callback()
|
||||
return self.callback.on_step()
|
||||
return True
|
||||
|
||||
def _on_step(self) -> bool:
|
||||
|
|
|
|||
Loading…
Reference in a new issue