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

This commit is contained in:
Ilya Churaev 2023-06-13 12:16:25 +04:00 committed by GitHub
parent b25c8ef860
commit 6043bcb5c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();
}