[mlir][sparse] fix doc
authorAart Bik <ajcbik@google.com>
Tue, 9 Aug 2022 22:48:00 +0000 (15:48 -0700)
committerAart Bik <ajcbik@google.com>
Wed, 10 Aug 2022 00:19:39 +0000 (17:19 -0700)
Reviewed By: Peiming

Differential Revision: https://reviews.llvm.org/D131527

mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorBase.td
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td

index d2186d9..2534bf1 100644 (file)
@@ -59,7 +59,7 @@ def SparseTensor_Dialect : Dialect {
     * [Biketal22] Aart J.C. Bik, Penporn Koanantakool, Tatiana Shpeisman,
     Nicolas Vasilache, Bixia Zheng, and Fredrik Kjolstad. Compiler Support
     for Sparse Tensor Computations in MLIR. ACM Transactions on Architecture
-    and Code Optimization, June, 2022 (see https://dl.acm.org/doi/10.1145/3544559).
+    and Code Optimization, June, 2022. See: https://dl.acm.org/doi/10.1145/3544559
     * [Chou18] Stephen Chou, Fredrik Berg Kjolstad, and Saman Amarasinghe.
     Format Abstraction for Sparse Tensor Algebra Compilers. Proceedings of
     the ACM on Programming Languages, October 2018.
index f9200ed..39af4a8 100644 (file)
@@ -514,6 +514,7 @@ def SparseTensor_UnaryOp : SparseTensor_Op<"unary", [NoSideEffect]>,
       ```
 
       Example returning +1 for existing values and -1 for missing values:
+
       ```mlir
       %result = sparse_tensor.unary %a : f64 to i32
         present={
@@ -529,6 +530,7 @@ def SparseTensor_UnaryOp : SparseTensor_Op<"unary", [NoSideEffect]>,
 
       Example showing a structural inversion (existing values become missing in
       the output, while missing values are filled with 1):
+
       ```mlir
       %result = sparse_tensor.unary %a : f64 to i64
         present={}
@@ -562,7 +564,6 @@ def SparseTensor_ReduceOp : SparseTensor_Op<"reduce", [NoSideEffect, SameOperand
       argument types.
 
       Note that this operation is only required for custom reductions beyond the
-
       standard operations (add, mul, and, or, etc). The `linalg.generic`
       `iterator_types` defines which indices are being reduced. When the associated
       operands are used in an operation, a reduction will occur. The use of this