[Mlir-commits] [mlir] 1631d9a - [mlir][linalg] Fix __repr__ implementation in const from opdsl
Alex Zinenko
llvmlistbot at llvm.org
Fri Aug 20 03:40:06 PDT 2021
Author: Denys Shabalin
Date: 2021-08-20T12:39:57+02:00
New Revision: 1631d9a7ea1a2c9ecfe020a02bafc7dfe0579bd8
URL: https://github.com/llvm/llvm-project/commit/1631d9a7ea1a2c9ecfe020a02bafc7dfe0579bd8
DIFF: https://github.com/llvm/llvm-project/commit/1631d9a7ea1a2c9ecfe020a02bafc7dfe0579bd8.diff
LOG: [mlir][linalg] Fix __repr__ implementation in const from opdsl
Reviewed By: gysit
Differential Revision: https://reviews.llvm.org/D108369
Added:
Modified:
mlir/python/mlir/dialects/linalg/opdsl/lang/comprehension.py
Removed:
################################################################################
diff --git a/mlir/python/mlir/dialects/linalg/opdsl/lang/comprehension.py b/mlir/python/mlir/dialects/linalg/opdsl/lang/comprehension.py
index f7bfa81c0a2c9..f54d2a5855388 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 @@ def to_scalar_expression(self) -> ScalarExpression:
return ScalarConst(self.value).expr()
def __repr__(self):
- return f"const({self.type_var}, {self.value})"
+ return f"const({self.value})"
class index(TensorExpression):
More information about the Mlir-commits
mailing list