mirror of
https://github.com/gryf/coach.git
synced 2025-12-18 11:40:18 +01:00
move only invocation of GraphManager.handle_episode_ended inline
This commit is contained in:
@@ -386,7 +386,7 @@ class GraphManager(object):
|
|||||||
|
|
||||||
if result.game_over:
|
if result.game_over:
|
||||||
self.handle_episode_ended()
|
self.handle_episode_ended()
|
||||||
# TODO: why not just reset right now?
|
|
||||||
self.reset_required = True
|
self.reset_required = True
|
||||||
if keep_networks_in_sync:
|
if keep_networks_in_sync:
|
||||||
self.sync_graph()
|
self.sync_graph()
|
||||||
|
|||||||
Reference in New Issue
Block a user