[Mlir-commits] [mlir] 2cbfa93 - [mlir][math] Fix pythong bindings after 00f7096d31cc7896ffd490e65104d264923f0df5

Benjamin Kramer llvmlistbot at llvm.org
Mon Aug 8 10:15:33 PDT 2022


Author: Benjamin Kramer
Date: 2022-08-08T19:14:44+02:00
New Revision: 2cbfa93f429343af3e8acb7ca69270b306e58139

URL: https://github.com/llvm/llvm-project/commit/2cbfa93f429343af3e8acb7ca69270b306e58139
DIFF: https://github.com/llvm/llvm-project/commit/2cbfa93f429343af3e8acb7ca69270b306e58139.diff

LOG: [mlir][math] Fix pythong bindings after 00f7096d31cc7896ffd490e65104d264923f0df5

Added: 
    

Modified: 
    mlir/python/mlir/dialects/linalg/opdsl/lang/emitter.py

Removed: 
    


################################################################################
diff  --git a/mlir/python/mlir/dialects/linalg/opdsl/lang/emitter.py b/mlir/python/mlir/dialects/linalg/opdsl/lang/emitter.py
index cc99081b440d0..e7493617a7567 100644
--- a/mlir/python/mlir/dialects/linalg/opdsl/lang/emitter.py
+++ b/mlir/python/mlir/dialects/linalg/opdsl/lang/emitter.py
@@ -393,7 +393,7 @@ def _unary_log(self, x: Value) -> Value:
 
   def _unary_abs(self, x: Value) -> Value:
     if _is_floating_point_type(x.type):
-      return math.AbsOp(x).result
+      return math.AbsFOp(x).result
     raise NotImplementedError("Unsupported 'abs' operand: {x}")
 
   def _unary_ceil(self, x: Value) -> Value:


        


More information about the Mlir-commits mailing list