From f51acad8aba6ffd04454626c15d76081b0a8ff20 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Tue, 8 Feb 2022 18:32:06 -0600 Subject: [PATCH] Fix stringification of arg{min,max} --- loopy/library/reduction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loopy/library/reduction.py b/loopy/library/reduction.py index 091e4a2c1..9a9b1c6e9 100644 --- a/loopy/library/reduction.py +++ b/loopy/library/reduction.py @@ -444,7 +444,7 @@ class _ArgExtremumReductionOperation(ReductionOperation): index_dtype.numpy_dtype.type(-1)), callables_table def __str__(self): - return self.which + return "arg" + self.which def __hash__(self): return hash(type(self)) -- GitLab