MCPcopy Create free account
hub / github.com/ddsggcs/cv_learning_resnet50 / LoadModule

Function LoadModule

practice/cpp/5th_codegen/resnet_codegen.cc:553–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551}
552
553Module LoadModule() {
554 void* handle = dlopen("./codegen/libresnet.so", RTLD_LAZY);
555 if (!handle) {
556 printf("Error dlopen.\n");
557 return 0;
558 }
559 auto myFunc = (Module)dlsym(handle, "_Z5InferPvS_S_");
560 if (!myFunc) {
561 printf("Error with dlsym.\n");
562 return 0;
563 } else {
564 printf("Success Get myFunc\n");
565 }
566 return myFunc;
567}

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected