This repository was archived by the owner on Aug 1, 2025. It is now read-only.

Description
🐛 Describe the bug
Turn off error suppression and then run test_factory
in test_aot_cudagraphs.py
. It has a failure that's:
File "/raid/ezyang/pytorch-scratch2/torch/_dynamo/convert_frame.py", line 168, in <listcomp>
seen_ids[obj_id] = any([has_tensor(v) for v in obj.__dict__.values()])
File "/raid/ezyang/pytorch-scratch2/torch/_dynamo/convert_frame.py", line 168, in has_tensor seen_ids[obj_id] = any([has_tensor(v) for v in obj.__dict__.values()])
File "/raid/ezyang/pytorch-scratch2/torch/_dynamo/convert_frame.py", line 168, in <listcomp>
seen_ids[obj_id] = any([has_tensor(v) for v in obj.__dict__.values()])
File "/raid/ezyang/pytorch-scratch2/torch/_dynamo/convert_frame.py", line 168, in has_tensor seen_ids[obj_id] = any([has_tensor(v) for v in obj.__dict__.values()])
File "/raid/ezyang/pytorch-scratch2/torch/_dynamo/convert_frame.py", line 168, in <listcomp>
seen_ids[obj_id] = any([has_tensor(v) for v in obj.__dict__.values()])
RuntimeError: dictionary changed size during iteration
This shouldn't happen.
Error logs
na
Did Dynamo succeed?
Did AOT succeed?
Did Inductor succeed?
Minified repro
na