diff --git a/loopy/library/reduction.py b/loopy/library/reduction.py index 85cf452b9..a4952d776 100644 --- a/loopy/library/reduction.py +++ b/loopy/library/reduction.py @@ -86,6 +86,9 @@ def __call__(self, dtype, operand1, operand2): def __ne__(self, other): return not self.__eq__(other) + def __repr__(self) -> str: + return type(self).__name__ + @staticmethod def parse_result_type(target, op_type): try: