MCPcopy Create free account
hub / github.com/NVIDIA/cuda-tile / __abs__

Method __abs__

python/cuda_tile/dialects/cuda_tile_ops.py:913–921  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

absiFunction · 0.85
absfFunction · 0.85

Tested by

no test coverage detected