pytorch
794f6e50 - [PyTorch] Accept string_view in Pickler::pushGlobal (#96402)

Commit
1 year ago
[PyTorch] Accept string_view in Pickler::pushGlobal (#96402) This should make a difference for users building with libstdc++: we pass string literals to pushGlobal with length longer than 15 bytes, and 15 bytes is the maximum inline size of libstdc++'s std::string before it will heap allocate. Differential Revision: [D43930698](https://our.internmc.facebook.com/intern/diff/D43930698/) Pull Request resolved: https://github.com/pytorch/pytorch/pull/96402 Approved by: https://github.com/ezyang
Author
Committer
Parents
Loading