Skip to content

Commit b9bb4d7

Browse files
committed
Add string representation for AttrsDescriptor
1 parent af152a5 commit b9bb4d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/triton/backends/compiler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ def get_property_key(val, align):
186186
return "1"
187187
return "N"
188188

189+
def __repr__(self):
190+
return f"AttrsDescriptor.from_dict({self.arg_properties})"
191+
189192

190193
@dataclass(frozen=True)
191194
class GPUTarget(object):

0 commit comments

Comments
 (0)