pytorch/torch/_dynamo/variables
Pian Pawakapan 247f83e0a4 [dynamic shapes] guard individual terms in sym_and; user-code-friendly sym_and/sym_or (#154737)
Previously when processing `sym_and(a, b, c)`, symbolic shapes wouldn't individually process a, b, and c and store their implications. This would lead us to data-dependent error on individual checks, e.g. we stored `u0 >= 0 & u0 <= 10`, but then couldn't figure out `u0 <= 10`.

This handles that, and also makes `sym_and/or` user-code friendly, for testing.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/154737
Approved by: https://github.com/laithsakka
2025-06-11 18:08:06 +00:00
..
__init__.py [dynamo] context manager/decorator for dynamo config patching during tracing (#150586) 2025-04-23 09:12:13 +00:00
base.py [Set] Handle exception in ConstantVariable operation (#152987) 2025-05-16 14:28:32 +00:00
builder.py [dynamo][dynamic] Recompilation hint for nn module integer attributes (#154867) 2025-06-05 16:37:22 +00:00
builtin.py [dynamo] Avoid unncessary caching source codegen (#155376) 2025-06-10 19:38:15 +00:00
constant.py [Set] Handle exception in ConstantVariable operation (#152987) 2025-05-16 14:28:32 +00:00
ctx_manager.py [dynamo] dynamic gb_type -> static gb_type (#154435) 2025-05-28 03:14:26 +00:00
dicts.py [dynamo] Reconstruct defaultdict properly (#154931) 2025-06-03 18:18:40 +00:00
distributed.py [Dyamo] Replace unimplemented with unimplemented_v2 for variables/distributed (#148500) 2025-03-05 20:41:43 +00:00
functions.py [dynamo, nested graph breaks] add skip_frame debugging function (#153773) 2025-05-28 23:29:37 +00:00
higher_order_ops.py [invoke_subgraph] Add logging (#155284) 2025-06-07 11:31:53 +00:00
iter.py [dynamo] updating gb_type names for uniqueness (#154452) 2025-05-28 16:54:10 +00:00
lazy.py [Dynamo] Use LazyVariableTracker in base VT (#151847) 2025-04-23 18:18:01 +00:00
lists.py [Dynamo] Replace unimplemented with unimplemented_v2 in torch/_dynamo/variables/lists.py (#151873) 2025-04-27 11:59:45 +00:00
misc.py [dynamo] Trace into descriptor with __set__ (#154176) 2025-05-30 16:14:37 +00:00
nn_module.py [reland][dynamo] Mark a vt unspecialized nn module variable source earlier (#155099) 2025-06-04 23:05:36 +00:00
optimizer.py [dynamo] Guard serialization for NAME_MATCH (#152332) 2025-04-29 20:16:00 +00:00
script_object.py Document dynamo (#146736) 2025-02-13 00:02:21 +00:00
sdpa.py [Dynamo][Misc] Apply typing hints for codegen (#150289) 2025-04-04 14:26:22 +00:00
tensor.py [Dynamo] Replace unimplemented with unimplemented_v2 in torch/_dynamo/variables/tensor.py (#153146) 2025-06-09 06:27:50 +00:00
torch_function.py [dynamo] updating gb_type names for uniqueness (#154452) 2025-05-28 16:54:10 +00:00
torch.py [dynamic shapes] guard individual terms in sym_and; user-code-friendly sym_and/sym_or (#154737) 2025-06-11 18:08:06 +00:00
user_defined.py [torch.compile] handle a custom __delattr__ method correctly (#150899) 2025-06-04 17:27:20 +00:00