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

Function TVMFFIFunctionCreate

src/ffi/function.cc:146–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144} // namespace tvm
145
146int TVMFFIFunctionCreate(void* self, TVMFFISafeCallType safe_call, void (*deleter)(void* self),
147 TVMFFIObjectHandle* out) {
148 TVM_FFI_SAFE_CALL_BEGIN();
149 tvm::ffi::Function func = tvm::ffi::Function::FromExternC(self, safe_call, deleter);
150 *out = tvm::ffi::details::ObjectUnsafe::MoveObjectRefToTVMFFIObjectPtr(std::move(func));
151 TVM_FFI_SAFE_CALL_END();
152}
153
154int TVMFFIAnyViewToOwnedAny(const TVMFFIAny* any_view, TVMFFIAny* out) {
155 TVM_FFI_SAFE_CALL_BEGIN();

Callers 2

Function_ConstructFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected