Class ArrayObj#
Defined in File array.h
Inheritance Relationships#
Base Types#
public tvm::ffi::Object
(Class Object)public tvm::ffi::details::InplaceArrayBase< ArrayObj, TVMFFIAny >
Class Documentation#
-
class ArrayObj : public tvm::ffi::Object, public tvm::ffi::details::InplaceArrayBase<ArrayObj, TVMFFIAny>#
Array node content in array.
Public Functions
-
inline ~ArrayObj()#
-
inline size_t size() const#
- Returns:
The size of the array
-
inline const Any &at(int64_t i) const#
Read i-th element from array.
- Parameters:
i – The index
- Returns:
the i-th element.
-
inline void clear()#
Release reference to all the elements.
Public Static Functions
-
static inline ObjectPtr<ArrayObj> CopyFrom(int64_t cap, ArrayObj *from)#
Constructs a container and copy from another.
- Parameters:
cap – The capacity of the container
from – Source of the copy
- Returns:
Ref-counted ArrayObj requested
-
inline ~ArrayObj()#