Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #225 from delira-dev/fix_logging_step
Browse files Browse the repository at this point in the history
remove globalstep from logging
  • Loading branch information
ORippler authored Dec 4, 2019
2 parents be0f9f0 + f039910 commit e33bdb9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions delira/training/callbacks/logging_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,10 @@ def at_iter_end(self, trainer, iter_num=None, data_dict=None, train=False,
"""

metrics = kwargs.get("metrics", {})
global_step = kwargs.get("global_iter_num", None)

for k, v in metrics.items():
self._logger.log({"scalar": {"tag": self.create_tag(k, train),
"scalar_value": v,
"global_step": global_step}})
"scalar_value": v}})

return {}

Expand Down

0 comments on commit e33bdb9

Please sign in to comment.