mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Convert logging f-strings to use % format (#98697)
Codemod done with https://gist.github.com/ezyang/2e8b0463cdc6be278478495b23ff0530 with assistance from ChatGPT. Signed-off-by: Edward Z. Yang <ezyang@meta.com> Pull Request resolved: https://github.com/pytorch/pytorch/pull/98697 Approved by: https://github.com/voznesenskym
This commit is contained in:
committed by
PyTorch MergeBot
parent
ad88afcff8
commit
9a8f71f23e
@ -296,7 +296,7 @@ class OperatorInputsLoader:
|
||||
try:
|
||||
op = eval(key)
|
||||
except AttributeError as ae:
|
||||
log.warning(f"Evaluating an op name into an OpOverload: {ae}")
|
||||
log.warning("Evaluating an op name into an OpOverload: %s", ae)
|
||||
continue
|
||||
yield op
|
||||
|
||||
|
Reference in New Issue
Block a user