From c86bf604fce8c21c36f3c2958561f5d6d773bbac Mon Sep 17 00:00:00 2001 From: siddhant-0707 Date: Sat, 30 Sep 2023 20:36:27 +0530 Subject: [PATCH 1/2] Update test_compiled_model.py --- .../python/tests/test_runtime/test_compiled_model.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bindings/python/tests/test_runtime/test_compiled_model.py b/src/bindings/python/tests/test_runtime/test_compiled_model.py index a977aea64ff748..37669c2400c244 100644 --- a/src/bindings/python/tests/test_runtime/test_compiled_model.py +++ b/src/bindings/python/tests/test_runtime/test_compiled_model.py @@ -25,6 +25,11 @@ def test_get_property(device): def test_get_runtime_model(device): compiled_model = generate_relu_compiled_model(device) + + core = Core() + user_stream = compiled_model.export_model() + core.import_model(user_stream, device) + runtime_model = compiled_model.get_runtime_model() assert isinstance(runtime_model, Model) From 2e3da39c1ebe9b79e3904d77d81d347f8c1af2f2 Mon Sep 17 00:00:00 2001 From: siddhant-0707 Date: Sat, 30 Sep 2023 21:11:38 +0530 Subject: [PATCH 2/2] fix --- src/bindings/python/tests/test_runtime/test_compiled_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/python/tests/test_runtime/test_compiled_model.py b/src/bindings/python/tests/test_runtime/test_compiled_model.py index 37669c2400c244..c256d427022ee0 100644 --- a/src/bindings/python/tests/test_runtime/test_compiled_model.py +++ b/src/bindings/python/tests/test_runtime/test_compiled_model.py @@ -25,7 +25,7 @@ def test_get_property(device): def test_get_runtime_model(device): compiled_model = generate_relu_compiled_model(device) - + core = Core() user_stream = compiled_model.export_model() core.import_model(user_stream, device)