Skip to content

Commit

Permalink
Fixed Core import model call (Ported from proxy) (openvinotoolkit#18020)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyachur authored and alvoron committed Jun 21, 2023
1 parent 1b83857 commit 4da2a88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inference/src/dev/core_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 4da2a88

Please sign in to comment.