diff options
| author | bixia1 <bixia@google.com> | 2023-01-11 09:06:42 -0800 |
|---|---|---|
| committer | bixia1 <bixia@google.com> | 2023-01-11 16:31:07 -0800 |
| commit | b78b547371253118b7ab04a12653c66878466d2b (patch) | |
| tree | b20f314a2d14d21204c45fd40520552112d46d77 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
| parent | c6b38f491fb22eb5705bf30fed1ce4a14416e8fe (diff) | |
| download | llvm-b78b547371253118b7ab04a12653c66878466d2b.zip llvm-b78b547371253118b7ab04a12653c66878466d2b.tar.gz llvm-b78b547371253118b7ab04a12653c66878466d2b.tar.bz2 | |
[mlir][sparse] Avoid values buffer reallocation for annotated all dense tensors.
Previously, we rely on the InsertOp to gradually increase the size of the
storage for all sparse tensors. We now allocate the full size values buffer
for annotated all dense tensors when we first allocate the tensor. This avoids
the cost of gradually increasing the buffer and allows accessing the values
buffer as if it were a dense tensor.
Reviewed By: Peiming
Differential Revision: https://reviews.llvm.org/D141516
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions
