legate.core.Type#

class legate.core.Type#
__init__()#

Construct a Type (by default a “null” type).

Attributes

alignment

uint32_t

code

TypeCode

is_primitive

bool

raw_ptr

uintptr_t

size

uint32_t

uid

int32_t

variable_size

bool

Methods

__eq__(self, other)

Compate this type against another.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__(self)

Compute the hash of the type.

__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__repr__(self)

Return a human-readable string representation of the type.

from_numpy_dtype(dtype)

Construct a Type object from a numpy dtype.

from_python_object(py_object)

Construct a Type object by deducing the type of a python object.

record_reduction_op(self, int32_t op_kind, ...)

Record a reduction operator.

reduction_op_id(self, int32_t op_kind)

Finds the global redop ID for a given reduction op kind.

to_numpy_dtype(self)

Get the equivalent numpy dtype for this type.