pytorch/torch/_dynamo/variables
Yuanyuan Chen fb64da0791 [2/N] Use "is" in python type comparison (#165142)
This is follow-up of #165037. It generally recommended to use `is/is not` to compare types. Therefore this series of changes apply this suggestion in the code base, and it aims to finally enabling related linter checks.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/165142
Approved by: https://github.com/albanD
2025-10-10 15:36:44 +00:00
..
__init__.py [dynamo] Support torch.fx.traceback.annotate (#164678) 2025-10-08 22:41:00 +00:00
base.py [dynamo][guards] More small guard optimizations (#159345) 2025-07-29 18:36:49 +00:00
builder.py [export] Preserve nn_module_stack for aliased nn modules (#164311) 2025-10-01 18:04:33 +00:00
builtin.py [2/N] Use "is" in python type comparison (#165142) 2025-10-10 15:36:44 +00:00
constant.py More ruff SIM fixes (#164695) 2025-10-09 03:24:50 +00:00
ctx_manager.py [dynamo] Support torch.fx.traceback.annotate (#164678) 2025-10-08 22:41:00 +00:00
dicts.py [1/N] Use "is" in python type comparison (#165037) 2025-10-10 12:36:50 +00:00
distributed.py Fix replacement reconstruct (#164937) 2025-10-09 15:31:23 +00:00
functions.py [dynamo, nested graph breaks] fix nested step graph break related issues (#162737) 2025-10-08 22:02:52 +00:00
higher_order_ops.py Revert "[2/N] More ruff SIM fixes (#165031)" 2025-10-10 13:42:14 +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] Avoid recompiling over unused objects (#156891) 2025-07-09 20:14:34 +00:00
lists.py [1/N] Use "is" in python type comparison (#165037) 2025-10-10 12:36:50 +00:00
misc.py More ruff SIM fixes (#164695) 2025-10-09 03:24:50 +00:00
nn_module.py More ruff SIM fixes (#164695) 2025-10-09 03:24:50 +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
tensor.py [2/N] Use "is" in python type comparison (#165142) 2025-10-10 15:36:44 +00:00
torch_function.py [dynamo] Be consistent with UserMethodVariable source (#160155) 2025-08-09 04:16:14 +00:00
torch.py [export][dynamo] Fallback to slowpath for MultiHeadAttention for strict export (#164721) 2025-10-09 03:25:15 +00:00
user_defined.py [2/N] Use "is" in python type comparison (#165142) 2025-10-10 15:36:44 +00:00