[JAVA] Fixed IECore constructor (#2685)
authorAnna Likholat <anna.likholat@intel.com>
Mon, 19 Oct 2020 16:38:55 +0000 (19:38 +0300)
committerGitHub <noreply@github.com>
Mon, 19 Oct 2020 16:38:55 +0000 (19:38 +0300)
inference-engine/ie_bridges/java/cpp/ie_core.cpp
inference-engine/ie_bridges/java/cpp/openvino_java.hpp
inference-engine/ie_bridges/java/org/intel/openvino/IECore.java
inference-engine/ie_bridges/java/samples/README.md

index 896e82b..6929854 100644 (file)
@@ -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
index 781b4b7..c3555ae 100644 (file)
@@ -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);
 
 //
index 7530458..43f34fa 100644 (file)
@@ -10,7 +10,7 @@ public class IECore extends IEWrapper {
     }
 
     public IECore(String xmlConfigFile) {
-        super(GetCore_1(xmlConfigFile));
+        super(GetCore1(xmlConfigFile));
     }
 
     public CNNNetwork ReadNetwork(final String modelPath, final String weightPath) {
@@ -92,7 +92,7 @@ public class IECore extends IEWrapper {
 
     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);
index 6cdb661..1cbf7cf 100644 (file)
@@ -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
 ```