mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
[FROJTEND] fix core.dtype.__repr__ (#2372)
`function_type` does not have a `name` field, which leads to an error when debugging with gdb.
This commit is contained in:
@@ -275,7 +275,7 @@ class dtype:
|
||||
return self.name
|
||||
|
||||
def __repr__(self):
|
||||
return f'triton.language.{self.name}'
|
||||
return f'triton.language.{str(self)}'
|
||||
|
||||
|
||||
class pointer_type(dtype):
|
||||
|
||||
Reference in New Issue
Block a user