mirror of
https://github.com/gryf/coach.git
synced 2025-12-18 03:30:19 +01:00
Adding steps and waiting for new checkpoint
This commit is contained in:
committed by
zach dwiel
parent
0e121c5762
commit
0f46877d7e
@@ -31,8 +31,10 @@ def training_worker(graph_manager, checkpoint_dir):
|
||||
graph_manager.save_checkpoint()
|
||||
|
||||
# training loop
|
||||
while True:
|
||||
steps = 0
|
||||
while(steps < graph_manager.improve_steps.num_steps):
|
||||
if graph_manager.should_train():
|
||||
steps += 1
|
||||
graph_manager.phase = core_types.RunPhase.TRAIN
|
||||
graph_manager.train(core_types.TrainingSteps(1))
|
||||
graph_manager.phase = core_types.RunPhase.UNDEFINED
|
||||
|
||||
Reference in New Issue
Block a user