[mlir][math] Fix pythong bindings after 00f7096d31cc7896ffd490e65104d264923f0df5
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 8 Aug 2022 17:14:44 +0000 (19:14 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 8 Aug 2022 17:14:44 +0000 (19:14 +0200)
mlir/python/mlir/dialects/linalg/opdsl/lang/emitter.py

index cc99081..e749361 100644 (file)
@@ -393,7 +393,7 @@ class _BodyBuilder:
 
   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: