Update tensorboard.py (#205)

* Update tensorboard.py

* Update tensorboard.py
pull/207/head
NightBaronStar 2020-03-11 17:01:52 +08:00 committed by GitHub
parent fd066152d0
commit 24a66f1d47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class TensorboardLoggerHook(LoggerHook):
@master_only
def before_run(self, runner):
if torch.__version__ >= '1.1':
if torch.__version__ >= '1.1' and '.' in torch.__version__:
try:
from torch.utils.tensorboard import SummaryWriter
except ImportError: