Previously, the sparse_tensor.unary integration test does not contain cases with the use of linalg.index (previoulsy unsupported), this commit adds test cases that use linalg.index operators.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Nice direction. One last nit.
mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_unary.mlir | ||
---|---|---|
126–127 | This is a bit misleading kernel. You say that we only "keep" a certain part, but what you really do is output zeros for that part. In the sparse format, you can see that there are a lot of explicitly stored zeros. To make this a more realistic example, perhaps say that we keep values in the corner, and set all others to some value (nonzero), e.g. 99 or so. Just to avoid the misleading "only keep" |
This is a bit misleading kernel. You say that we only "keep" a certain part, but what you really do is output zeros for that part. In the sparse format, you can see that there are a lot of explicitly stored zeros.
To make this a more realistic example, perhaps say that we keep values in the corner, and set all others to some value (nonzero), e.g. 99 or so. Just to avoid the misleading "only keep"