mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
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:
committed by
PyTorch MergeBot
parent
5a7aad9681
commit
b8b840be3d
@ -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__":
|
||||
|
Reference in New Issue
Block a user