Skip to content

Commit

Permalink
added flush
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon committed Jul 26, 2019
1 parent 8989b3c commit 0350fb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test_tube/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,9 @@ def __hash__(self):
return 'Exp: {}, v: {}'.format(self.name, self.version)

def flush(self):
if self.rank == 0:
return

if self.all_writers is None:
return # ignore double close

Expand Down

0 comments on commit 0350fb9

Please sign in to comment.