Skip to content

Commit

Permalink
[JAVA] Fixed IECore constructor (openvinotoolkit#2685)
Browse files Browse the repository at this point in the history
  • Loading branch information
likholat authored and mryzhov committed Dec 15, 2020
1 parent d00bf25 commit 7b91af9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion inference-engine/ie_bridges/java/cpp/ie_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ JNIEXPORT jlong JNICALL Java_org_intel_openvino_IECore_GetCore(JNIEnv *env, jobj
return 0;
}

JNIEXPORT jlong JNICALL Java_org_intel_openvino_IECore_GetCore_1(JNIEnv *env, jobject obj, jstring xmlConfigFile)
JNIEXPORT jlong JNICALL Java_org_intel_openvino_IECore_GetCore1(JNIEnv *env, jobject obj, jstring xmlConfigFile)
{
static const char method_name[] = "GetCore_1";
try
Expand Down
2 changes: 1 addition & 1 deletion inference-engine/ie_bridges/java/cpp/openvino_java.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ JNIEXPORT void JNICALL Java_org_intel_openvino_IECore_SetConfig(JNIEnv *, jobjec
JNIEXPORT void JNICALL Java_org_intel_openvino_IECore_SetConfig1(JNIEnv *, jobject, jlong, jobject);
JNIEXPORT jlong JNICALL Java_org_intel_openvino_IECore_GetConfig(JNIEnv *, jobject, jlong, jstring, jstring);
JNIEXPORT jlong JNICALL Java_org_intel_openvino_IECore_GetCore(JNIEnv *, jobject);
JNIEXPORT jlong JNICALL Java_org_intel_openvino_IECore_GetCore_1(JNIEnv *, jobject, jstring);
JNIEXPORT jlong JNICALL Java_org_intel_openvino_IECore_GetCore1(JNIEnv *, jobject, jstring);
JNIEXPORT void JNICALL Java_org_intel_openvino_IECore_delete(JNIEnv *, jobject, jlong);

//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public IECore() {
}

public IECore(String xmlConfigFile) {
super(GetCore_1(xmlConfigFile));
super(GetCore1(xmlConfigFile));
}

public CNNNetwork ReadNetwork(final String modelPath, final String weightPath) {
Expand Down Expand Up @@ -92,7 +92,7 @@ private static native long LoadNetwork1(

private static native long GetCore();

private static native long GetCore_1(String xmlConfigFile);
private static native long GetCore1(String xmlConfigFile);

@Override
protected native void delete(long nativeObj);
Expand Down
1 change: 1 addition & 0 deletions inference-engine/ie_bridges/java/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Upon start-up, the application reads command-line parameters and loads a network

## Build
Create an environment variable with Inference Engine installation path:
```bash
export IE_PATH=/path/to/openvino/bin/intel64/Release/lib
```

Expand Down

0 comments on commit 7b91af9

Please sign in to comment.