tmp fix for compile internal logger issue (#165568)

Summary: Catch runtime exception when garse and scrub uninteresting configs from inductor config

Test Plan: tested locally

Differential Revision: D84727788

Pull Request resolved: https://github.com/pytorch/pytorch/pull/165568
Approved by: https://github.com/luccafong, https://github.com/oulgen
This commit is contained in:
Richard Zou
2025-10-15 22:03:13 +00:00
committed by PyTorch MergeBot
parent b3f6d49b69
commit e787d532b6

View File

@ -1575,7 +1575,7 @@ def _scrubbed_inductor_config_for_logging() -> Optional[str]:
if torch._inductor.config:
try:
inductor_config_copy = torch._inductor.config.get_config_copy()
except (TypeError, AttributeError):
except (TypeError, AttributeError, RuntimeError, AssertionError):
inductor_conf_str = "Inductor Config cannot be pickled"
if inductor_config_copy is not None: