Function tvm::ffi::HasCreator#
Defined in File creator.h
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.