[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:
q.yao
2023-09-22 23:34:20 +08:00
committed by GitHub
parent 293b7fd592
commit 413b18eb73

View File

@@ -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):