Skip to content

Commit

Permalink
do not crash vdl when logdir is missing (#1149)
Browse files Browse the repository at this point in the history
  • Loading branch information
rainyfly committed Nov 15, 2022
1 parent da5be6c commit 4956520
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions visualdl/component/profiler/profiler_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ def __init__(self, logdir=''):
self.run_managers = {}
self.profile_result_queue = Queue()
self.tempfile = None
self.runs()
Thread(target=self._get_data_from_queue, args=()).start()
if logdir:
self.runs()
Thread(target=self._get_data_from_queue, args=()).start()

@property
def logdir(self):
Expand Down

0 comments on commit 4956520

Please sign in to comment.