[all-commits] [llvm/llvm-project] 07150f: [mlir][sparse] Add sparse_tensor.select operation
Jim Kitchen via All-commits
all-commits at lists.llvm.org
Tue Sep 13 13:29:31 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 07150fece507d72bd35619b51e5cfd17ed2474ca
https://github.com/llvm/llvm-project/commit/07150fece507d72bd35619b51e5cfd17ed2474ca
Author: Jim Kitchen <jim22k at gmail.com>
Date: 2022-09-13 (Tue, 13 Sep 2022)
Changed paths:
M mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td
M mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
M mlir/test/Dialect/SparseTensor/invalid.mlir
M mlir/test/Dialect/SparseTensor/roundtrip.mlir
Log Message:
-----------
[mlir][sparse] Add sparse_tensor.select operation
The new select operation allows filtering of sparse tensors
by conditionally keeping or removing each element. This
can be used to remove negative values or select the upper
triangle of a matrix.
The select op has a single region which operates on a single
value and must return a boolean True to keep or False to drop.
Reviewed by: aartbik
Differential Revision: https://reviews.llvm.org/D133569
More information about the All-commits
mailing list