[Mlir-commits] [mlir] 58a5510 - [MLIR][Math] Improve docs for round op (NFC)

lorenzo chelini llvmlistbot at llvm.org
Tue Jun 28 23:35:12 PDT 2022


Author: lorenzo chelini
Date: 2022-06-29T08:35:07+02:00
New Revision: 58a55107c2c27777976224c7bde5d3ae93d2f414

URL: https://github.com/llvm/llvm-project/commit/58a55107c2c27777976224c7bde5d3ae93d2f414
DIFF: https://github.com/llvm/llvm-project/commit/58a55107c2c27777976224c7bde5d3ae93d2f414.diff

LOG: [MLIR][Math] Improve docs for round op (NFC)

Reviewed By: antiagainst

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

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Math/IR/MathOps.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Math/IR/MathOps.td b/mlir/include/mlir/Dialect/Math/IR/MathOps.td
index 58cf55fefaff2..d0bfcf5187946 100644
--- a/mlir/include/mlir/Dialect/Math/IR/MathOps.td
+++ b/mlir/include/mlir/Dialect/Math/IR/MathOps.td
@@ -667,7 +667,10 @@ def Math_RoundOp : Math_FloatUnaryOp<"round"> {
 
     The `round` operation returns the operand rounded to the nearest integer
     value in floating-point format. It takes one operand of floating point type
-    (i.e., scalar, tensor or vector) and produces one result of the same type.
+    (i.e., scalar, tensor or vector) and produces one result of the same type.  The
+    operation rounds the argument to the nearest integer value in floating-point
+    format, rounding halfway cases away from zero, regardless of the current
+    rounding direction.
 
     Example:
 


        


More information about the Mlir-commits mailing list