← 返回事件
持续讨论AI发版

viable/strict/1788472218: Fix TensorList storage sanity-check codegen (#195857)

发生了什么

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

摘要按规则整理自下方来源原文

为什么在扩散

来源