remove writer check

pull/1489/head
ly015 2021-11-03 15:06:42 +08:00 committed by Wenwei Zhang
parent a68d28c9f8
commit 8afb7c295c
1 changed files with 1 additions and 2 deletions

View File

@ -101,8 +101,7 @@ class PaviLoggerHook(LoggerHook):
iteration=iteration)
# flush the buffer and send a task ending signal to Pavi
if hasattr(self, 'writer'):
self.writer.close()
self.writer.close()
@master_only
def before_epoch(self, runner):