Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JAVA] Fixed IECore constructor #2685

Merged
merged 1 commit into from
Oct 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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