Class Type#
Defined in File type.h
Inheritance Relationships#
Base Type#
public ffi::ObjectRef
Derived Types#
public tvm::AnyType(Class AnyType)public tvm::FuncType(Class FuncType)public tvm::MissingType(Class MissingType)public tvm::NoneType(Class NoneType)public tvm::OpaqueType(Class OpaqueType)public tvm::PrimType(Class PrimType)public tvm::PtrType(Class PtrType)public tvm::StringType(Class StringType)public tvm::TensorRegionType(Class TensorRegionType)public tvm::TupleType(Class TupleType)public tvm::tirx::TensorMapType(Class TensorMapType)public tvm::tirx::TensorType(Class TensorType)
Class Documentation#
-
class Type : public ffi::ObjectRef#
Managed reference to TypeObj.
See also
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 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.
-
inline explicit Type(::tvm::ffi::UnsafeInit tag)#