Fixed Core import model call (Ported from proxy) (#18020)

This commit is contained in:
Ilya Churaev authored and GitHub committed 2023-06-13 08:16:25 +00:00
1 parent b25c8ef860
commit 6043bcb5c0
1 file changed
+1 -1
+1 -1
View File
@@ -686,7 +686,7 @@ ov::SoPtr<ov::ICompiledModel> ov::CoreImpl::import_model(std::istream& modelStre
const ov::AnyMap& config) const {
OV_ITT_SCOPED_TASK(ov::itt::domains::IE, "Core::import_model");
auto parsed = parseDeviceNameIntoConfig(context.get_device_name(), config);
auto compiled_model = get_plugin(parsed._deviceName).import_model(modelStream, parsed._config);
auto compiled_model = get_plugin(parsed._deviceName).import_model(modelStream, context, parsed._config);
if (auto wrapper = std::dynamic_pointer_cast<InferenceEngine::ICompiledModelWrapper>(compiled_model._ptr)) {
wrapper->get_executable_network()->loadedFromCache();
}