Convert logging f-strings to use % format, part five (#98765)

This does some annoying but simple cases by hand.

Signed-off-by: Edward Z. Yang <ezyang@meta.com>

Pull Request resolved: https://github.com/pytorch/pytorch/pull/98765
Approved by: https://github.com/wanchaol
This commit is contained in:
Edward Z. Yang
2023-04-11 09:15:23 -04:00
committed by PyTorch MergeBot
parent 5a7aad9681
commit b8b840be3d
21 changed files with 77 additions and 92 deletions

View File

@ -61,7 +61,7 @@ def main():
utilization, mm_conv_utilization = compute_utilization(filenames, total_length)
print(f"{modelname}, {utilization}, {mm_conv_utilization}")
except BaseException:
logging.exception(f"{filename}, ERROR")
logging.exception("%s, ERROR", filename)
print(f"{filename}, ERROR")
if __name__ == "__main__":