MCPcopy Create free account
hub / github.com/JDAI-CV/DNNLibrary / LoadFunction

Function LoadFunction

dnnlibrary/nnapi_implementation.cc:67–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65namespace {
66
67void* LoadFunction(void* handle, const char* name, bool optional) {
68 if (handle == nullptr) {
69 return nullptr;
70 }
71 void* fn = dlsym(handle, name);
72 if (fn == nullptr && !optional) {
73 NNAPI_LOG("nnapi error: unable to open function %s", name);
74 }
75 return fn;
76}
77
78#ifndef __ANDROID__
79// Add /dev/shm implementation of shared memory for non-Android platforms

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected