Library versions & made tests relocatable (#12416)
* Fixes for cases when TBB_DIR env var is set * Don't use make in build_samples.sh script * First version of Windows installer * WIndows NSIS installer * Improved version of debian packages * Improvements * Improvements * Debian packages now look good * Library versioning * Fixed tests to run against debian packages * Fixed frontend tests * Fixed code style * FIxed Windows * Fixed python tests * Fixed paths in tests * fdvfdv * Fixes * USe versioning only for debian packages * Relocatable tests * Fixed * Fixed all tests * Fixed clang-format * Fixed more tests * Fixed some tests * Absolute paths in .ci * Fixes * Added support of OpenCV 3.4 * Trying to fix gnaUnitTests
This commit is contained in:
@@ -346,7 +346,12 @@ def test_direct_infer(device):
|
||||
|
||||
|
||||
def test_compiled_model_after_core_destroyed(device):
|
||||
core, model = get_model_with_template_extension()
|
||||
core = Core()
|
||||
with open(test_net_bin, "rb") as f:
|
||||
weights = f.read()
|
||||
with open(test_net_xml, "rb") as f:
|
||||
xml = f.read()
|
||||
model = core.read_model(model=xml, weights=weights)
|
||||
compiled = core.compile_model(model, device)
|
||||
del core
|
||||
del model
|
||||
|
||||
@@ -317,7 +317,7 @@ def test_unregister_plugin(device):
|
||||
with pytest.raises(RuntimeError) as e:
|
||||
core.load_network(model, device)
|
||||
assert (
|
||||
f"Device with '{device}' name is not registered in the InferenceEngine"
|
||||
f"Device with '{device}' name is not registered in the OpenVINO Runtime"
|
||||
in str(e.value)
|
||||
)
|
||||
|
||||
|
||||
@@ -202,12 +202,8 @@ def test_set_tensors(device):
|
||||
assert np.allclose(tensor4.data, t9.data, atol=1e-2, rtol=1e-2)
|
||||
|
||||
|
||||
@pytest.mark.dynamic_library()
|
||||
@pytest.mark.template_extension()
|
||||
def test_batched_tensors(device):
|
||||
core = Core()
|
||||
# TODO: remove when plugins will support set_input_tensors
|
||||
core.register_plugin("openvino_template_plugin", "TEMPLATE")
|
||||
|
||||
batch = 4
|
||||
one_shape = [1, 2, 2, 2]
|
||||
@@ -230,7 +226,7 @@ def test_batched_tensors(device):
|
||||
|
||||
model = Model([res1], [data1])
|
||||
|
||||
compiled_model = core.compile_model(model, "TEMPLATE")
|
||||
compiled_model = core.compile_model(model, device)
|
||||
|
||||
req = compiled_model.create_infer_request()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user