Skip to content

Commit

Permalink
ReductionOperation: add __repr__
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener authored and inducer committed Dec 1, 2023
1 parent d81f6c6 commit 57af5f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions loopy/library/reduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 57af5f0

Please sign in to comment.