cuda.tile.Tile#
- class cuda.tile.Tile#
Type stub for a tile.
- property shape#
The number of elements in each of the tile’s dimensions.
- Return type:
tuple[const int,…]
- item()#
Equivalent to self.reshape(()).
- Returns:
A scalar tile.
- Return type:
Examples
>>> tx = ct.full((1,), 0, dtype=ct.int32) >>> x = tx.item() >>> ty = ct.load(array, (0, x), shape=(4, 4))
- transpose(axis0=None, axis1=None)#
See
transpose().
- __index__()#
0D Tile can be used as index in range
- __getitem__(index)#
Syntax sugar for expand_dim
- __add__(other)#
- __sub__(other)#
- __mul__(other)#
- __truediv__(other)#
- __floordiv__(other)#
- __mod__(other)#
- __pow__(other)#
- __and__(other)#
- __or__(other)#
Return self|value.
- __xor__(other)#
- __radd__(other)#
- __rsub__(other)#
- __rmul__(other)#
- __rtruediv__(other)#
- __rfloordiv__(other)#
- __rmod__(other)#
- __rpow__(other)#
- __rand__(other)#
- __ror__(other)#
Return value|self.
- __rxor__(other)#
- __ge__(other)#
Return self>=value.
- __gt__(other)#
Return self>value.
- __le__(other)#
Return self<=value.
- __lt__(other)#
Return self<value.
- __eq__(other)#
Return self==value.
- __ne__(other)#
Return self!=value.
- __neg__()#
- __invert__()#
- __matmul__(other)#
- __rmatmul__(other)#
- __hash__ = None#