benchmark
f6325186 - Dynamo/fix ignore logging functions (#178506)

Commit
4 days ago
Dynamo/fix ignore logging functions (#178506) Summary: ## PR Summary Fixes #178455 ignore_logger_methods was renamed to ignore_logging_functions in torch 2.11 but wasn't added to blocklist in _get_dynamo_config_for_logging() ## Repro ``` import torch import torch._dynamo.config import torch._dynamo.utils torch._dynamo.config.ignore_logging_functions.add(print) torch._dynamo.utils._get_dynamo_config_for_logging() ``` ## Changes * Include `ignore_logging_functions` from `_get_dynamo_config_for_logging()` (consistent with existing `ignore_logger_methods`) * Add a regression test to ensure no crash when logging config includes builtin functions * Added a test that: * Inserts `print` into `ignore_logging_functions` * Verifies `_get_dynamo_config_for_logging()` returns valid JSON without errors related issue: #178455 X-link: https://github.com/pytorch/pytorch/pull/178506 Approved by: https://github.com/Lucaskabela Reviewed By: georgehong Differential Revision: D98428654 fbshipit-source-id: bc625ca2b8800b09d9276b7811d95e4515281922 Co-authored-by: PyTorch MergeBot <pytorchmergebot@users.noreply.github.com>
Author
generatedunixname499836121
Committer
Parents
Loading