[mlir][sparse][taco] Add a few unary operations.
authorBixia Zheng <bixia@google.com>
Thu, 10 Mar 2022 17:40:54 +0000 (09:40 -0800)
committerBixia Zheng <bixia@google.com>
Fri, 11 Mar 2022 16:08:55 +0000 (08:08 -0800)
commit30c5269d93258875b7ef72095068c8d9487fb9d2
tree9a046288960af53e78ca97c03bd4bd8fcf4982d1
parent058c92f2a4e865d478b29035c207ec0744229d6a
[mlir][sparse][taco] Add a few unary operations.

Add operations -, abs, ceil and floor to the index notation.

Add test cases.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D121388
mlir/test/Integration/Dialect/SparseTensor/taco/test_tensor_unary_ops.py [new file with mode: 0644]
mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco.py
mlir/test/Integration/Dialect/SparseTensor/taco/tools/mlir_pytaco_api.py