pytorch/torch/_dynamo
Aaron Gokaslan 4f4ecc583e [BE]: Enable RUFF TRY400 rule - log.exception (#153473)
Change logging.error to logging.exception to log additional information when relevant.  A few places have slipped in logging.errors in try except since I last did a clean up here and the rule is stabilized so I am enabling it codebase wide. I have NOQA'd much of our custom exception stack trace handling for RPC calls and distributed and tried to a fix a few errors based on whether we immediately reraised it or if we didn't print any exception handling where it could be useful.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/153473
Approved by: https://github.com/albanD, https://github.com/cyyever
2025-05-15 13:36:59 +00:00
..
backends [compile-time traces] Profile large missing gaps in compile time (#151256) 2025-05-13 14:44:51 +00:00
polyfills [ca] support higher order gradients (create_graph=True) (#153222) 2025-05-13 16:42:09 +00:00
repro [BE]: Enable RUFF TRY400 rule - log.exception (#153473) 2025-05-15 13:36:59 +00:00
variables [dynamo][compile-time] Faster inspect getattr_static for torch.Tensor (#153522) 2025-05-15 05:54:15 +00:00
__init__.py [dynamo] context manager/decorator for dynamo config patching during tracing (#150586) 2025-04-23 09:12:13 +00:00
_trace_wrapped_higher_order_op.py Document dynamo (#146736) 2025-02-13 00:02:21 +00:00
bytecode_analysis.py Remove code for Python < 3.9 (#147097) 2025-02-14 03:22:49 +00:00
bytecode_transformation.py [dynamo][compile-time] Cache whether a function is inlineable (#153192) 2025-05-14 05:40:25 +00:00
cache_size.py Migrate from Tuple -> tuple in torch/_dynamo (#144261) 2025-01-10 07:45:57 +00:00
callback.py cleanup JK for duplicate pt2 compile callbacks prevention (#148704) 2025-04-11 15:17:06 +00:00
code_context.py Document dynamo (#146736) 2025-02-13 00:02:21 +00:00
codegen.py [dynamo] reconstruct functions decorated in the compiled region properly (#150645) 2025-04-08 17:32:46 +00:00
compiled_autograd.py [ca] support higher order gradients (create_graph=True) (#153222) 2025-05-13 16:42:09 +00:00
comptime.py [BE][PYFMT] migrate PYFMT for torch._dynamo to ruff format (#144549) 2025-02-28 03:03:53 +00:00
config.py [ez] fix a bunch of typos in dynamo (#152886) 2025-05-06 05:13:56 +00:00
convert_frame.py [compile-time traces] Profile large missing gaps in compile time (#151256) 2025-05-13 14:44:51 +00:00
create_parameter_op.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
current_scope_id.py Document dynamo (#146736) 2025-02-13 00:02:21 +00:00
debug_utils.py [BE] Migrate dtype_abbrs into one location (#152229) 2025-04-28 03:52:47 +00:00
decorators.py [dynamo] fix potential circular import error in decorators.py (#153217) 2025-05-14 01:01:57 +00:00
device_interface.py Use torch.types.Device in device_interface.py (#152935) 2025-05-07 13:20:10 +00:00
distributed.py Document dynamo (#146736) 2025-02-13 00:02:21 +00:00
eval_frame.py [dynamo] Support delattr on result of torch.compile(module) (#152741) 2025-05-14 17:03:59 +00:00
exc.py Super tiny fix typo (#149109) 2025-03-23 03:02:53 +00:00
external_utils.py [ca] mark scalar int sizes as dynamic via tensor wrapping (#151731) 2025-05-08 15:12:08 +00:00
funcname_cache.py gracefully handle tokenize.TokenError in funcname parser. Adds support for non-Python source (#148737) 2025-03-11 19:49:28 +00:00
graph_break_hints.py [dynamo] unimplemented -> unimplemented_v2 in variables/builder.py (#151044) 2025-04-11 09:07:01 +00:00
graph_deduplication.py [Dynamo] Fix typing in graph_deduplication.py (#152572) 2025-05-13 12:17:59 +00:00
graph_region_tracker.py [Dynamo] Optimize dedupe region ancestor tracking (#152589) 2025-05-13 12:17:59 +00:00
graph_utils.py [Hierarchical Compile] Take into account mutation deps in cycle detection (#152506) 2025-05-13 12:17:59 +00:00
guards.py [dynamo] Guard serialization for SHAPE_ENV (#153258) 2025-05-12 14:42:01 +00:00
hooks.py [dynamo] Allow guards to be dropped with custom filter functions. (#150936) 2025-04-11 03:06:34 +00:00
logging.py Revert "Use the device interface for detecting Triton availability (#139171)" 2025-03-11 18:49:21 +00:00
metrics_context.py [logging] Fix duration logging for dynamo_compile (#151749) 2025-04-22 03:29:13 +00:00
mutation_guard.py Add functionality for installing free variables (#151134) 2025-04-24 17:57:54 +00:00
output_graph.py [compile-time traces] Profile large missing gaps in compile time (#151256) 2025-05-13 14:44:51 +00:00
pgo.py Make PGO code state not sensitive to file path by hashing file content when the file is available. (#152628) 2025-05-02 17:11:21 +00:00
profiler.py Document dynamo (#146736) 2025-02-13 00:02:21 +00:00
replay_record.py Document dynamo (#146736) 2025-02-13 00:02:21 +00:00
resume_execution.py [BE][PYFMT] migrate PYFMT for torch._dynamo to ruff format (#144549) 2025-02-28 03:03:53 +00:00
side_effects.py [dynamo] Support Tensor subclass that has dynamic attributes or calls Parameter.__torch_function__ (#149482) 2025-04-02 20:56:43 +00:00
source.py [dynamo] Add guard serialization for tensor matches. (#151318) 2025-04-25 14:16:23 +00:00
symbolic_convert.py [dynamo][compile-time] Cache method on load builtin (#153524) 2025-05-15 05:54:15 +00:00
tensor_version_op.py Document dynamo (#146736) 2025-02-13 00:02:21 +00:00
test_case.py Fix path matching in CPythonTestCase/setUpClass (#153070) 2025-05-13 16:26:25 +00:00
test_dont_skip_tracing_functions.py [dynamo] context manager/decorator for dynamo config patching during tracing (#150586) 2025-04-23 09:12:13 +00:00
test_minifier_common.py Document dynamo (#146736) 2025-02-13 00:02:21 +00:00
testing.py [inductor][refactor] Refactor the fetching of subgraph names (#152770) 2025-05-06 02:55:34 +00:00
trace_rules.py [map] always turn on dynamo for map (#152041) 2025-05-12 02:10:08 +00:00
types.py [dynamo] Use sentinel value for guard filter. (#151131) 2025-04-12 15:29:57 +00:00
utils.py [BE]: Enable RUFF TRY400 rule - log.exception (#153473) 2025-05-15 13:36:59 +00:00