Class ArrayObj#

Inheritance Relationships#

Base Type#

Class Documentation#

class ArrayObj : public tvm::ffi::SeqBaseObj#

Array node content in array.

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

static inline ObjectPtr<ArrayObj> MoveFrom(int64_t cap, ArrayObj *from)#

Constructs a container and move from another.

Parameters:
  • cap – The capacity of the container

  • from – Source of the move

Returns:

Ref-counted ArrayObj requested

static inline ObjectPtr<ArrayObj> CreateRepeated(int64_t n, const Any &val)#

Constructs a container with n elements. Each element is a copy of val.

Parameters:
  • n – The size of the container

  • val – The init value

Returns:

Ref-counted ArrayObj requested