pytorch/torch/_dynamo/variables
Guilherme Leobas b67f97c166 Correctly handle OP_CONTAINS (#158660)
CPython can fallback to `__iter__` if object doesn't implement
`__contains__`

Pull Request resolved: https://github.com/pytorch/pytorch/pull/158660
Approved by: https://github.com/zou3519
2025-07-23 22:31:51 +00:00
..
__init__.py [Dynamo] [SetSubclass] Add support for user defined sets (#153553) 2025-07-04 00:45:25 +00:00
base.py [dynamo] update base variable call_method hint with note on comprehensions (#156769) 2025-06-25 21:55:55 +00:00
builder.py [math] Trace float.fromhex (#156976) 2025-07-23 16:12:08 +00:00
builtin.py [math] Trace float.fromhex (#156976) 2025-07-23 16:12:08 +00:00
constant.py Fixes for CPython int/float tests (#155978) 2025-07-02 15:04:00 +00:00
ctx_manager.py [hop] support torch.func.functional_call in hop subgraph (#155886) 2025-06-28 23:47:46 +00:00
dicts.py Correctly handle OP_CONTAINS (#158660) 2025-07-23 22:31:51 +00:00
distributed.py [BE][4/16] fix typos in torch/ (torch/_dynamo/) (#156314) 2025-06-23 02:57:19 +00:00
functions.py Correctly handle OP_CONTAINS (#158660) 2025-07-23 22:31:51 +00:00
higher_order_ops.py [export] runtime asserts for while HOP subgraphs (#158467) 2025-07-23 00:34:18 +00:00
iter.py [dynamo] updating gb_type names for uniqueness (#154452) 2025-05-28 16:54:10 +00:00
lazy.py [dynamo] Avoid recompiling over unused objects (#156891) 2025-07-09 20:14:34 +00:00
lists.py Correctly handle OP_CONTAINS (#158660) 2025-07-23 22:31:51 +00:00
misc.py [Dynamo] [FrozensetSubclass] Add support for user defined frozensets (#154263) 2025-07-04 00:46:05 +00:00
nn_module.py [BE][4/16] fix typos in torch/ (torch/_dynamo/) (#156314) 2025-06-23 02:57:19 +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][tensor] Skip HASATTR attribute on tensor guards (#158215) 2025-07-15 20:10:47 +00:00
torch_function.py [BE][4/16] fix typos in torch/ (torch/_dynamo/) (#156314) 2025-06-23 02:57:19 +00:00
torch.py [math] Raise exception in Dynamo if constant fold call fail (#156975) 2025-07-23 16:12:08 +00:00
user_defined.py [Dynamo] Use proper sources for constructing dataclass defaults (#157993) 2025-07-18 21:51:40 +00:00