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

Function Java_me_daquexian_dnnlibrary_Model_dispose

dnnlibrary/JavaWrapper.cpp:125–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125extern "C" JNIEXPORT void JNICALL Java_me_daquexian_dnnlibrary_Model_dispose(
126 JNIEnv *env, jobject obj /* this */) {
127 auto handle = getHandle<Model>(env, obj);
128 if (handle != nullptr) {
129 delete handle;
130 setHandle(env, obj, nullptr);
131 }
132}
133
134jint throwException(JNIEnv *env, std::string message) {
135 jclass exClass;

Callers

nothing calls this directly

Calls 1

setHandleFunction · 0.85

Tested by

no test coverage detected