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

Function Function_RetrieveGlobal

examples/abi_overview/example_code.c:236–242  ·  view source on GitHub ↗

[Function.GetGlobal.begin]

Source from the content-addressed store, hash-verified

234
235// [Function.GetGlobal.begin]
236TVMFFIObject* Function_RetrieveGlobal(const char* name) {
237 TVMFFIObject* out = NULL;
238 TVMFFIByteArray name_byte_array = {name, strlen(name)};
239 int err_code = TVMFFIFunctionGetGlobal(&name_byte_array, (void**)(&out));
240 assert(err_code == 0);
241 return out;
242}
243// [Function.GetGlobal.end]
244
245// [Function.SetGlobal.begin]

Callers

nothing calls this directly

Calls 1

TVMFFIFunctionGetGlobalFunction · 0.85

Tested by

no test coverage detected