viable/strict/1788472218: Fix TensorList storage sanity-check codegen (#195857)
- PyTorch: 489 events in the last 90 days
- PyTorch: 484th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1788468668: [dynamo] Index bytecode constants by identity (#195622)
What happened
The original code constructed a vector with N elements and then pushed N more elements into it. So the vector had 2N total elements of which N were just default constructed nullopts. I suspect that was an oversight and the author meant to reserve storage for N elements. Pull Request resolved: #195857 Approved by: https://github.com/Skylion007
Summary assembled by rule from the sources below