MCPcopy Create free account
hub / github.com/apache/tvm-ffi / TVMFFIPyPyObjectToFFIAny

Function TVMFFIPyPyObjectToFFIAny

python/tvm_ffi/cython/tvm_ffi_python_helpers.h:925–927  ·  view source on GitHub ↗

! * \brief Convert a Python object to a FFI Any * \param py_arg The python argument to be set * \param out The output argument * \param c_api_ret_code The return code of the function * \return 0 on success, nonzero on failure */

Source from the content-addressed store, hash-verified

923 * \return 0 on success, nonzero on failure
924 */
925TVM_FFI_INLINE int TVMFFIPyPyObjectToFFIAny(PyObject* py_arg, TVMFFIAny* out, int* c_api_ret_code) {
926 return TVMFFIPyCallManager::ThreadLocal()->PyObjectToFFIAny(py_arg, out, c_api_ret_code);
927}
928
929/*!
930 * \brief Get the size of the arg dispatch map

Callers

nothing calls this directly

Calls 1

PyObjectToFFIAnyMethod · 0.80

Tested by

no test coverage detected