Unverified Commit f97a8b37 authored by Maxim Bonnaerens's avatar Maxim Bonnaerens Committed by GitHub
Browse files

Fix fstring in TextLoggerHook (#257)

parent 45a39dc6
...@@ -53,7 +53,7 @@ class TextLoggerHook(LoggerHook): ...@@ -53,7 +53,7 @@ class TextLoggerHook(LoggerHook):
if torch.cuda.is_available(): if torch.cuda.is_available():
log_str += f'memory: {log_dict["memory"]}, ' log_str += f'memory: {log_dict["memory"]}, '
else: else:
log_str = 'Epoch({log_dict["mode"]}) ' \ log_str = f'Epoch({log_dict["mode"]}) ' \
f'[{log_dict["epoch"] - 1}][{log_dict["iter"]}]\t' f'[{log_dict["epoch"] - 1}][{log_dict["iter"]}]\t'
log_items = [] log_items = []
for name, val in log_dict.items(): for name, val in log_dict.items():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment