viable/strict/1788472218: Fix TensorList storage sanity-check codegen (#195857)
- PyTorch 近 90 天出现 501 次
- PyTorch 近 90 天第 496 次发版
- 上一次:同一天稍早 · viable/strict/1788468668: [dynamo] Index bytecode constants by identity (#195622)
发生了什么
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
摘要按规则整理自下方来源原文