tvm_ffi.Array#
- class tvm_ffi.Array(input_list)[source]#
Bases:
CContainerBase,Object,Sequence[T]Array container that represents a sequence of values in the FFI.
tvm_ffi.convert()will map python list/tuple to this class.Examples
import tvm_ffi a = tvm_ffi.Array([1, 2, 3]) assert tuple(a) == (1, 2, 3)
Notes
For structural equality and hashing, use
structural_equalandstructural_hashAPIs.See also
Methods
__init__(input_list)Construct an Array from a Python sequence.
__init_handle_by_constructor__(fconstructor, ...)Defined in
Objectas method__init_handle_by_constructor__().__move_handle_from__(other)Defined in
Objectas method__move_handle_from__()._move()count(value)Defined in
Sequenceas methodcount().index(value, [start, [stop]])Defined in
Sequenceas methodindex().is_(other)Defined in
Objectas methodis_().same_as(other)Attributes
id_Defined in
Objectas attributeid_.