mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[dynamo] Remove the suggestion to use suppress_errors on compiler error (#146553)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/146553 Approved by: https://github.com/zou3519, https://github.com/jansel
This commit is contained in:
committed by
PyTorch MergeBot
parent
25aa7ca62d
commit
fa0956951c
@ -430,14 +430,6 @@ def augment_exc_message(exc: Exception, msg: str = "\n", export: bool = False) -
|
||||
"this script to find the smallest traced graph which reproduces this error.\n"
|
||||
)
|
||||
|
||||
if not config.suppress_errors and not export:
|
||||
msg += (
|
||||
"\n\n"
|
||||
"You can suppress this exception and fall back to eager by setting:\n"
|
||||
" import torch._dynamo\n"
|
||||
" torch._dynamo.config.suppress_errors = True\n"
|
||||
)
|
||||
|
||||
old_msg = "" if len(exc.args) == 0 else str(exc.args[0])
|
||||
|
||||
if isinstance(exc, KeyError):
|
||||
|
Reference in New Issue
Block a user