From 1631d9a7ea1a2c9ecfe020a02bafc7dfe0579bd8 Mon Sep 17 00:00:00 2001 From: Denys Shabalin Date: Fri, 20 Aug 2021 12:35:09 +0200 Subject: [PATCH] [mlir][linalg] Fix __repr__ implementation in const from opdsl Reviewed By: gysit Differential Revision: https://reviews.llvm.org/D108369 --- mlir/python/mlir/dialects/linalg/opdsl/lang/comprehension.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/python/mlir/dialects/linalg/opdsl/lang/comprehension.py b/mlir/python/mlir/dialects/linalg/opdsl/lang/comprehension.py index f7bfa81c0a2c..f54d2a585538 100644 --- a/mlir/python/mlir/dialects/linalg/opdsl/lang/comprehension.py +++ b/mlir/python/mlir/dialects/linalg/opdsl/lang/comprehension.py @@ -405,7 +405,7 @@ class const(TensorExpression): return ScalarConst(self.value).expr() def __repr__(self): - return f"const({self.type_var}, {self.value})" + return f"const({self.value})" class index(TensorExpression):