Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Lipin committed Jan 31, 2020
1 parent a5288d0 commit 64620a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/logging/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 64620a0

Please sign in to comment.