mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
[BE] add noqa for flake8 rule B036: found except BaseException
without re-raising (#159043)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/159043 Approved by: https://github.com/Skylion007
This commit is contained in:
committed by
PyTorch MergeBot
parent
4261e26a8b
commit
f903bc475c
@ -66,7 +66,7 @@ def main():
|
||||
filenames, total_length
|
||||
)
|
||||
print(f"{modelname}, {utilization}, {mm_conv_utilization}")
|
||||
except BaseException:
|
||||
except BaseException: # noqa: B036
|
||||
log.exception("%s, ERROR", filename)
|
||||
print(f"{filename}, ERROR")
|
||||
|
||||
|
Reference in New Issue
Block a user