Type Definition tvm::function::ffi::TVMArgTypeCode [−][src]
pub type TVMArgTypeCode = u32;
Expand description
\brief The type code in used and only used in TVM FFI for argument passing.
DLPack consistency:
- kTVMArgInt is compatible with kDLInt
- kTVMArgFloat is compatible with kDLFloat
- kDLUInt is not in ArgTypeCode, but has a spared slot
Downstream consistency: The kDLInt, kDLUInt, kDLFloat are kept consistent with the original ArgType code
It is only used in argument passing, and should not be confused with DataType::TypeCode, which is DLPack-compatible.
\sa tvm::runtime::DataType::TypeCode