tqchen commented on code in PR #447:
URL: https://github.com/apache/tvm-ffi/pull/447#discussion_r2808223711


##########
include/tvm/ffi/c_api.h:
##########
@@ -551,6 +551,18 @@ TVM_FFI_DLL int TVMFFIObjectIncRef(TVMFFIObjectHandle obj);
  */
 TVM_FFI_DLL int TVMFFIObjectDecRef(TVMFFIObjectHandle obj);
 
+/*!
+ * \brief Get the global invalid/missing object as an owned TVMFFIAny.
+ *
+ * Returns a singleton Object that represents an "invalid" or "missing" state.
+ * The returned TVMFFIAny holds an owned reference to the object (i.e., the
+ * reference count is incremented). The caller is responsible for releasing
+ * it via the normal Any cleanup path.
+ *
+ * \param out The output owned TVMFFIAny.
+ */
+TVM_FFI_DLL void TVMFFIAnyGetInvalidObject(TVMFFIAny* out);

Review Comment:
   does it have to be a C API, or can we have it as a packed function API? I 
think it is better to have it as a packed function API for now



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to