(self)
| 911 | return f"cuda_tile.Tile({shape_str})" |
| 912 | |
| 913 | def __abs__(self): |
| 914 | if isinstance(self.element_type, _ods_ir.IntegerType): |
| 915 | return absi(self) |
| 916 | if isinstance(self.element_type, _ods_ir.FloatType): |
| 917 | return absf(self) |
| 918 | raise TypeError( |
| 919 | "Cannot perform absolute value on non-numeric element type ", |
| 920 | self.element_type, |
| 921 | ) |
| 922 | |
| 923 | def __add__(self, rhs): |
| 924 | return add(self, rhs) |