trunk/73c27d87e075f3831e2462bd61cbbb37d0d82d69: Refactor TupleElements using uninit memory algorithms (#191647)
- PyTorch 近 90 天出现 411 次
- PyTorch 近 90 天第 408 次发版
- 上一次:同一天稍早 · trunk/a3586f00181a395b066cdf3a8933c2b47b7a6890
发生了什么
The old TupleElements implementation was highly nested and made use of placement new and explicit destructor calls. This commit changes it to a flatter implementation and uses uninitialized memory algorithms. It also improves the implementation of TensorElements::vec() && by returning the internal vector instead of copying. Things could be made even better if we had C++26's std::inplace_vector . TupleElements could…
摘要按规则整理自下方来源原文