Skip to content

Commit

Permalink
Update saver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaosu-zhu authored Apr 7, 2023
1 parent 6e2d7c7 commit 1df518b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vlutils/saver.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ def __init__(self, saveDir: StrPath, saveName: StrPath = "saved.ckpt", loggerNam
else:
self._saveDir = saveDir
self._savePath = os.path.join(self._saveDir, saveName)
self._url = None

@staticmethod
def _nop(*args, **kwds):
Expand All @@ -261,6 +262,10 @@ def flush(self):
def close(self):
pass

@property
def TensorboardURL(self) -> str:
return ""

@property
def Logger(self) -> logging.Logger:
raise NotImplementedError("Dummy saver does not have logger.")
Expand Down

0 comments on commit 1df518b

Please sign in to comment.