Function tvm::ffi::reflection::MakeInit

Function tvm::ffi::reflection::MakeInit#

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=True fields, and fills defaults for unbound fields.

Parameters:

type_index – The runtime type index.

Returns:

The init Function.