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

Function Function_SetGlobal

examples/abi_overview/example_code.c:246–250  ·  view source on GitHub ↗

[Function.SetGlobal.begin]

Source from the content-addressed store, hash-verified

244
245// [Function.SetGlobal.begin]
246void Function_SetGlobal(const char* name, TVMFFIObject* func) {
247 TVMFFIByteArray name_byte_array = {name, strlen(name)};
248 int err_code = TVMFFIFunctionSetGlobal(&name_byte_array, func, 0);
249 assert(err_code == 0);
250}
251// [Function.SetGlobal.end]
252
253// [Error.Print.begin]

Callers

nothing calls this directly

Calls 1

TVMFFIFunctionSetGlobalFunction · 0.85

Tested by

no test coverage detected