Class TypeObj#

Inheritance Relationships#

Base Type#

  • public ffi::Object

Derived Types#

Class Documentation#

class TypeObj : public ffi::Object#

Type is the base type of all types.

TVM’s type system contains following subclasses:

  • PrimType: type of primitive type values used in the low-level IR.

  • FuncType: type of a function.

  • TensorType: type of certain Tensor values in the expression.

There are also advanced types to support generic(polymorphic types).

See also

Type

Subclassed by tvm::AnyTypeObj, tvm::FuncTypeObj, tvm::MissingTypeObj, tvm::NoneTypeObj, tvm::OpaqueTypeObj, tvm::PrimTypeObj, tvm::PtrTypeObj, tvm::StringTypeObj, tvm::TensorRegionTypeObj, tvm::TupleTypeObj, tvm::tirx::TensorMapTypeObj, tvm::tirx::TensorTypeObj

Public Members

mutable Location loc = UnknownLoc()#

Location that points to the original source code. Reserved debug information.

Public Static Functions

static inline void RegisterReflection()#
static inline int32_t _GetOrAllocRuntimeTypeIndex()#
static inline int32_t RuntimeTypeIndex() noexcept#