Function tvm::ffi::HasCreator

Function tvm::ffi::HasCreator#

Function Documentation#

inline bool tvm::ffi::HasCreator(const TVMFFITypeInfo *type_info)#

Check whether a type supports reflection creation.

Returns true if the type has a native creator or a __ffi_new__ type attr.

Parameters:

type_info – The type info to check.

Returns:

true if CreateEmptyObject would succeed.