pytorch/torch/_dynamo/variables
Animesh Jain 830e789a55 [dynamo][annotate] Graph break cleanly on fx.traceback.annotate reconstruction (#166006)
This avoids generation of bad bytecode, leading to really confusing
error. I am not sure why we can't reconstruct cleanly, it has to do with
the input being a dict, while other supported ctx managers take bools.

Fixing that is for another day. Lets give a good error message for now.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/166006
Approved by: https://github.com/yushangdi, https://github.com/SherlockNoMad
2025-10-21 20:48:04 +00:00
..
__init__.py [user-streams] Move stream code to streams module (#163027) 2025-10-14 05:43:19 +00:00
base.py [dynamo] Clean up assert in dynamo [1/N] (#165430) 2025-10-19 21:00:05 +00:00
builder.py [Bugfix][Dynamo] Fix Sparse tensors by graph break in Dynamo (#164873) 2025-10-16 15:06:20 +00:00
builtin.py [dynamo] Clean up assert in dynamo [1/N] (#165430) 2025-10-19 21:00:05 +00:00
constant.py [dynamo] Clean up assert in dynamo [1/N] (#165430) 2025-10-19 21:00:05 +00:00
ctx_manager.py [dynamo][annotate] Graph break cleanly on fx.traceback.annotate reconstruction (#166006) 2025-10-21 20:48:04 +00:00
dicts.py [dynamo] Clean up assert in dynamo [1/N] (#165430) 2025-10-19 21:00:05 +00:00
distributed.py Fixing get_local_rank() variable missing when compiled (#165432) 2025-10-16 18:20:34 +00:00
functions.py Patch the flex_attention._get_mod_type to not use inspect.signature when computing num_positional_args (an alternative fix for flex attention graph break on create_block_mask) (#164923) 2025-10-17 17:44:45 +00:00
higher_order_ops.py Enable PLW0127 in ruff (#165851) 2025-10-21 03:30:57 +00:00
iter.py [dynamo, nested graph breaks] move cell codegen before side effects codegen (#160601) 2025-10-08 22:02:52 +00:00
lazy.py [Dynamo][Logging] Add sources/types to LazyVariableTracker logging (#165402) 2025-10-15 23:23:09 +00:00
lists.py [dynamo] Clean up assert in dynamo [1/N] (#165430) 2025-10-19 21:00:05 +00:00
misc.py Revert "[dynamo][misc] Replace UserFunctionVariable with VariableTracker build (#165707)" 2025-10-21 19:25:03 +00:00
nn_module.py [dynamo][nn_module] Replace UserFunctionVariable with VariableTracker build (#165708) 2025-10-21 04:13:12 +00:00
optimizer.py [Dynamo] Don't guard data ptrs by default with mark_static_address (#162208) 2025-09-12 07:15:10 +00:00
script_object.py [dynamo] Replace unimplemented with unimplemented_v2 in torch/_dynamo/variables/script_object.py (#159343) 2025-08-01 21:30:41 +00:00
sdpa.py More ruff SIM fixes (#164695) 2025-10-09 03:24:50 +00:00
streams.py [RFC] Add pyrefly to lintrunner (#165179) 2025-10-16 20:07:09 +00:00
tensor.py Fix issues with generalized_scatter and setitem allocated unbacked symbols. (#164341) 2025-10-18 03:20:30 +00:00
torch_function.py [dynamo] Be consistent with UserMethodVariable source (#160155) 2025-08-09 04:16:14 +00:00
torch.py [dynamo] Clean up assert in dynamo [1/N] (#165430) 2025-10-19 21:00:05 +00:00
user_defined.py Fix dynamo stack trace (#165930) 2025-10-21 01:32:23 +00:00