Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Lipin authored and festeh committed Feb 2, 2020
1 parent fa50e1c commit 5fc8fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/loggers/tensorboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import torch
import csv
from torch.utils.tensorboard import SummaryWriter
from torch.utils.tensorboard.summary import hparams

from .base import LightningLoggerBase, rank_zero_only

Expand Down Expand Up @@ -85,6 +84,7 @@ def log_hyperparams(self, params):
" hyperparameter logging."
)
else:
from torch.utils.tensorboard.summary import hparams
exp, ssi, sei = hparams(params, {})
writer = self.experiment._get_file_writer()
writer.add_summary(exp)
Expand Down

0 comments on commit 5fc8fdf

Please sign in to comment.