mirror of
https://github.com/gryf/coach.git
synced 2025-12-18 11:40:18 +01:00
Adding worker logs and plumbed task_parameters to distributed coach (#130)
This commit is contained in:
committed by
Balaji Subramaniam
parent
2b4c9c6774
commit
4a6c404070
@@ -12,14 +12,11 @@ def data_store_ckpt_save(data_store):
|
||||
time.sleep(10)
|
||||
|
||||
|
||||
def training_worker(graph_manager, checkpoint_dir):
|
||||
def training_worker(graph_manager, task_parameters):
|
||||
"""
|
||||
restore a checkpoint then perform rollouts using the restored model
|
||||
"""
|
||||
# initialize graph
|
||||
task_parameters = TaskParameters()
|
||||
task_parameters.__dict__['checkpoint_save_dir'] = checkpoint_dir
|
||||
task_parameters.__dict__['checkpoint_save_secs'] = 20
|
||||
graph_manager.create_graph(task_parameters)
|
||||
|
||||
# save randomly initialized graph
|
||||
|
||||
Reference in New Issue
Block a user