Skip to content

Commit

Permalink
Fix logging error when tensorboard isn't installed (fixes #1794) (#1076)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: fairinternal/fairseq-py#1076

Differential Revision: D20322669

Pulled By: myleott

fbshipit-source-id: 84e89ef817171f58c0aade06b7b0181fe483240d
  • Loading branch information
myleott authored and facebook-github-bot committed Mar 7, 2020
1 parent 86916e0 commit 1f04f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fairseq/logging/progress_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ def print(self, stats, tag=None, step=None):


try:
from tensorboardX import SummaryWriter
_tensorboard_writers = {}
from tensorboardX import SummaryWriter
except ImportError:
SummaryWriter = None

Expand Down

0 comments on commit 1f04f81

Please sign in to comment.