Class Type#

Inheritance Relationships#

Base Type#

  • public ffi::ObjectRef

Derived Types#

Class Documentation#

class Type : public ffi::ObjectRef#

Managed reference to TypeObj.

See also

TypeObj

Subclassed by tvm::AnyType, tvm::FuncType, tvm::MissingType, tvm::NoneType, tvm::OpaqueType, tvm::PrimType, tvm::PtrType, tvm::StringType, tvm::TensorRegionType, tvm::TupleType, tvm::tirx::TensorMapType, tvm::tirx::TensorType

Public Types

using ContainerType = TypeObj#

Public Functions

inline explicit Type(::tvm::ffi::UnsafeInit tag)#
inline __PtrType operator->() const#
inline __PtrType get() const#

Public Static Functions

template<typename TypeObj>
static inline void Expose()#

Request API exposure of a registered IR object type.

Note

Finish the ObjectDef statement and constructor registration before calling. Does nothing if the optional receiver was absent on the string helper’s first call.

ffi::reflection::ObjectDef<FooTypeObj>().def_ro("value", &FooTypeObj::value);
Type::Expose<FooTypeObj>();

Template Parameters:

TypeObj – The object class, not its reference wrapper.

static Type Missing()#

Construct a MissingType for type information not yet populated.