Skip to content

Commit

Permalink
changed timer sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
luigiba committed Sep 26, 2019
1 parent 47f9c20 commit 7533439
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions distribute_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,13 @@ def main_fun(argv, ctx):

#gives time to chief to stop
if task_index != 0:
time.sleep(15)
time.sleep(30)

else:
#gives time to other workers to connect
if task_index == 0:
time.sleep(30)

d = {
'r_tot' : 0.0, 'r_filter_tot' : 0.0, 'r_tot_constrain' : 0.0, 'r_filter_tot_constrain' : 0.0,
'r1_tot' : 0.0, 'r1_filter_tot' : 0.0, 'r1_tot_constrain' : 0.0, 'r1_filter_tot_constrain' : 0.0,
Expand Down Expand Up @@ -603,7 +607,9 @@ def main_fun(argv, ctx):
f.write(str(key) + ":" + str(d[key])+'\n')



#gives time to chief to stop
if task_index != 0:
time.sleep(30)



Expand Down

0 comments on commit 7533439

Please sign in to comment.