Base#
- class ivy.data_classes.nested_array.base.NestedArrayBase(data, nested_rank, inner_shape, dtype, device, internal=False)[source]#
Bases:
ABC
Base class for nested array objects.
- _abc_impl = <_abc._abc_data object>#
- property data: NativeArray#
The native array being wrapped in self.
- property device: Device#
Hardware device the array data resides on.
- property dtype: Dtype#
Data type of the array elements.
- property inner_shape: Tuple[int]#
Inner Shape.
- property ndim: int#
Number of array dimensions (axes).
- classmethod nested_array(data, nested_rank=None, inner_shape=None, dtype=None, device=None)[source]#
- property nested_rank: int#
Nested Rank.
- property shape: List#
Array dimensions.
This should have hopefully given you an overview of the base submodule, if you have any questions, please feel free to reach out on our discord!