Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
ericl committed Dec 2, 2018
1 parent 4760437 commit 2edb020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/ray/rllib/agents/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ def train(self):
self.local_evaluator.filters))

result = Trainable.train(self)
if self.config["callbacks"].get("on_train_step"):
self.config["callbacks"]["on_train_step"]({
if self.config["callbacks"].get("on_train_result"):
self.config["callbacks"]["on_train_result"]({
"agent": self,
"result": result,
})
Expand Down

0 comments on commit 2edb020

Please sign in to comment.