52 lines
1.5 KiB
Java
52 lines
1.5 KiB
Java
import org.intel.openvino.*;
|
|
import org.junit.Ignore;
|
|
import org.junit.Rule;
|
|
import org.junit.rules.TestWatcher;
|
|
import org.junit.runner.Description;
|
|
|
|
import java.nio.file.Paths;
|
|
|
|
@Ignore
|
|
public class IETest {
|
|
String modelXml;
|
|
String modelBin;
|
|
static String device;
|
|
|
|
public IETest() {
|
|
try {
|
|
System.loadLibrary(IECore.NATIVE_LIBRARY_NAME);
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Failed to load Inference Engine library\n" + e);
|
|
System.exit(1);
|
|
}
|
|
modelXml =
|
|
Paths.get(
|
|
System.getenv("MODELS_PATH"),
|
|
"models",
|
|
"test_model",
|
|
"test_model_fp32.xml")
|
|
.toString();
|
|
modelBin =
|
|
Paths.get(
|
|
System.getenv("MODELS_PATH"),
|
|
"models",
|
|
"test_model",
|
|
"test_model_fp32.bin")
|
|
.toString();
|
|
}
|
|
|
|
@Rule
|
|
public TestWatcher watchman =
|
|
new TestWatcher() {
|
|
@Override
|
|
protected void succeeded(Description description) {
|
|
System.out.println(description + " - OK");
|
|
}
|
|
|
|
@Override
|
|
protected void failed(Throwable e, Description description) {
|
|
System.out.println(description + " - FAILED");
|
|
}
|
|
};
|
|
}
|