pytorch/torch/_dynamo/variables
Ryan Guo b4f4c75e19 [dynamo] Support multiple inheritance for custom dict construction (#142416)
This patch applies a local and practical workaround for custom dict
construction when multiple inheritance is involved.

Handling multiple inheritance in general could be a lot more involved,
so I created #142414 to track that.

Fixes #141118.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/142416
Approved by: https://github.com/jansel
2024-12-13 05:13:05 +00:00
..
__init__.py [dynamo][NFC] Rename NewCellVariable to CellVariable (#141628) 2024-12-02 19:09:30 +00:00
base.py [dynamo] Simplify handling of functools.wraps (#142000) 2024-12-06 17:34:59 +00:00
builder.py Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
builtin.py [dynamo] Support multiple inheritance for custom dict construction (#142416) 2024-12-13 05:13:05 +00:00
constant.py [dynamo] Expand support of enum attribute access (#142268) 2024-12-10 19:32:40 +00:00
ctx_manager.py [FSDP2] Move to public torch.distributed.fsdp (#141868) 2024-12-07 01:24:28 +00:00
dicts.py [dynamo] Support multiple inheritance for custom dict construction (#142416) 2024-12-13 05:13:05 +00:00
distributed.py [dynamo] Fix VariableBuilder._wrap on frozenset and enforce invariants on ConstantVariable (#141504) 2024-11-27 21:58:35 +00:00
functions.py [FSDP2] Move to public torch.distributed.fsdp (#141868) 2024-12-07 01:24:28 +00:00
higher_order_ops.py Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
iter.py [BE]: Apply PERF401 autofixes from ruff (#140980) 2024-11-20 17:52:07 +00:00
lazy.py [dynamo] Replace __str__ with __repr__ in some places (#136316) 2024-10-21 19:50:38 +00:00
lists.py [dynamo] Use proper item source for NamedTupleVariable (#142437) 2024-12-10 19:23:48 +00:00
misc.py Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
nn_module.py [dynamo] Support multiple inheritance for custom dict construction (#142416) 2024-12-13 05:13:05 +00:00
optimizer.py Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
script_object.py Add basic mypy annotations to dynamo (#132415) 2024-08-04 18:43:36 +00:00
sdpa.py [dynamo] Simplify creation of VariableTrackers (#135714) 2024-10-18 09:36:46 +00:00
tensor.py Remove unused Python variables in torch/[_-a]* (#133492) 2024-12-12 17:39:14 +00:00
torch_function.py [dynamo] Simplify creation of VariableTrackers (#135714) 2024-10-18 09:36:46 +00:00
torch.py [Dynamo] Add register_hook as in-graph tensor method (#142820) 2024-12-11 12:02:03 +00:00
user_defined.py [dynamo] Properly handle != under user-defined __eq__ (#142078) 2024-12-06 08:06:53 +00:00