mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
PyTorch MergeBot
parent
b3f6d49b69
commit
e787d532b6
@ -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:
|
||||
|
Reference in New Issue
Block a user