concepts.dsl.dsl_types.BatchedListType#
- class BatchedListType[source]#
Bases:
UniformSequenceType
Methods
Return the value type for assignment.
downcast_compatible
(other[, ...])Check if the type is downcast-compatible with the other type; that is, if this type is a subtype of the other type.
Return the element type if we iterate over the list.
long_str
()Return the long string representation of the type.
ndim
()The number of dimensions of the list.
set_parent_type
(parent_type)Return the short string representation of the type.
Attributes
An optional alias of the type.
Return the typename of the base type.
The element type of the list.
Return whether the type is a multidimensional list type.
Return whether the type is a list type.
Return whether the type is an object type.
Return whether the type is a Python object value type.
Return whether the type is a sequence type.
Return whether the type is a tensor value type.
Return whether the type is a tuple type.
Return whether the type is a value type.
The parent type of the type.
Return the typename of the parent type.
The (full) typename of the type.
The index types of the list.
- __init__(element_type, index_dtypes, alias=None)[source]#
Initialize the type.
- Parameters:
typename – The name of the type.
alias (str | None) – The alias of the type.
element_type (TypeBase)
index_dtypes (Sequence[ObjectType])
- __new__(**kwargs)#
- downcast_compatible(other, allow_self_list=False, allow_list=False)#
Check if the type is downcast-compatible with the other type; that is, if this type is a subtype of the other type.
- iter_element_type()[source]#
Return the element type if we iterate over the list. Basically type(value[0]).
- Return type:
- unwrap_alias()#
- property base_typename#
Return the typename of the base type.
- index_dtypes: Tuple[ObjectType, ...]#
The index types of the list.
- property parent_typename#
Return the typename of the parent type.