This revison lifts the artificial restriction on having exact matches between
source and destination type shapes. A static size may become dynamic. We still
reject changing a dynamic size into a static size to avoid the need for a
runtime "assert" on the conversion. This revision also refactors some of the
conversion code to share same-content buffers.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp | ||
---|---|---|
244 | Shall we add "or 10 vs. ?" ? | |
mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp | ||
197 | Can we add "for unknown dimension values in type"? | |
233 | No need for this /? | |
mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_convert.mlir | ||
27 | s/change/shape/? |
Shall we add "or 10 vs. ?" ?