[all-commits] [llvm/llvm-project] 9d1db3: [mlir][sparse] generalize sparse_tensor.convert on...
Aart Bik via All-commits
all-commits at lists.llvm.org
Mon Oct 18 13:54:19 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9d1db3d4a1970ebb88803fdd862ce1d633b46bdc
https://github.com/llvm/llvm-project/commit/9d1db3d4a1970ebb88803fdd862ce1d633b46bdc
Author: Aart Bik <ajcbik at google.com>
Date: 2021-10-18 (Mon, 18 Oct 2021)
Changed paths:
M mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td
M mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
M mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
M mlir/test/Dialect/SparseTensor/conversion.mlir
M mlir/test/Dialect/SparseTensor/invalid.mlir
A mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_convert.mlir
Log Message:
-----------
[mlir][sparse] generalize sparse_tensor.convert on static/dynamic dimension sizes
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.
Reviewed By: bixia
Differential Revision: https://reviews.llvm.org/D111915
More information about the All-commits
mailing list