[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:
Animesh Jain
2025-02-06 11:37:59 -08:00
committed by PyTorch MergeBot
parent 25aa7ca62d
commit fa0956951c

View File

@ -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):