Function tvm::ffi::reflection::MakeInit#
Defined in File init.h
Function Documentation#
-
inline Function tvm::ffi::reflection::MakeInit(int32_t type_index)#
Create a packed
__ffi_init__constructor for the given type.The returned Function creates an instance via the type’s creator, binds positional (and optionally keyword) arguments to
init=Truefields, and fills defaults for unbound fields.- Parameters:
type_index – The runtime type index.
- Returns:
The init Function.