[Mlir-commits] [mlir] [mlir][python] Fix attribute registration in ir.py (PR #94615)
Egor Ospadov
llvmlistbot at llvm.org
Thu Jun 6 09:20:32 PDT 2024
https://github.com/eospadov updated https://github.com/llvm/llvm-project/pull/94615
>From 09279627a9a827eb8b9c83f8557c6a9882ab39b2 Mon Sep 17 00:00:00 2001
From: Egor Ospadov <43787913+eospadov at users.noreply.github.com>
Date: Thu, 6 Jun 2024 09:23:43 -0400
Subject: [PATCH] [mlir][python] Fix attribute registration in ir.py
---
mlir/python/mlir/ir.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mlir/python/mlir/ir.py b/mlir/python/mlir/ir.py
index 80c965b2d0eb2..a9ac765fe1c17 100644
--- a/mlir/python/mlir/ir.py
+++ b/mlir/python/mlir/ir.py
@@ -68,7 +68,7 @@ def _si1Attr(x, context):
@register_attribute_builder("SI8Attr")
-def _i8Attr(x, context):
+def _si8Attr(x, context):
return IntegerAttr.get(IntegerType.get_signed(8, context=context), x)
@@ -93,7 +93,7 @@ def _ui1Attr(x, context):
@register_attribute_builder("UI8Attr")
-def _i8Attr(x, context):
+def _ui8Attr(x, context):
return IntegerAttr.get(IntegerType.get_unsigned(8, context=context), x)
More information about the Mlir-commits
mailing list