mirror of https://github.com/open-mmlab/mmcv.git
parent
fd066152d0
commit
24a66f1d47
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue