Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp | ||
|---|---|---|
| 505 | A quick improvement for encoded all dense tensor can be done in a similar way as well. | |
| 536–537 | Not an issue in this patch. But RT path only emit ifOp if there is a dense dimension in the sparse tensor, do we need to test all compressed/singleton tensors ? Or we can assume only non-zero elements are stored in those tensors? | |
| mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp | ||
|---|---|---|
| 505 | All dense encoded tensor is trickier in a sense we will have to write to the linear values buffer. | |
| 536–537 | dense dim can have 0, but compressed/singleton shouldn't have zero. | |
| mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp | ||
|---|---|---|
| 505 | Yes, you should be able to rely on sparse_tensor.insert to do linearize the address. | |
| mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorRewriting.cpp | ||
|---|---|---|
| 505 | will do this in a follow up PR, to both codegen and conversion. | |
A quick improvement for encoded all dense tensor can be done in a similar way as well.