Skip to content

Commit

Permalink
Remove unnecessary code in BaseOutputHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
sadra-barikbin authored Jan 22, 2022
1 parent 111fc7a commit 3484a59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ignite/contrib/handlers/base_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _setup_output_metrics_state_attrs(
if not isinstance(output_dict, dict):
output_dict = {"output": output_dict}

metrics_state_attrs.update({name: value for name, value in output_dict.items()})
metrics_state_attrs.update(output_dict)

if self.state_attributes is not None:
metrics_state_attrs.update({name: getattr(engine.state, name, None) for name in self.state_attributes})
Expand Down

0 comments on commit 3484a59

Please sign in to comment.