Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and lexierule committed Nov 9, 2021
1 parent 6d1ee3b commit 4755ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/loggers/csv_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def save(self) -> None:
metrics_keys = list(last_m.keys())

with open(self.metrics_file_path, "w", newline="") as f:
# Don't assign the writer to self.
# Don't assign the writer to self.
# Keeps an open reference and prevents pickling otherwise
writer = csv.DictWriter(f, fieldnames=metrics_keys)
writer.writeheader()
Expand Down

0 comments on commit 4755ae6

Please sign in to comment.