Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/inference/src/cpp/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ RemoteContext Core::create_context(const std::string& device_name, const AnyMap&
OPENVINO_ASSERT(device_name.find("BATCH") != 0, "BATCH device does not support remote context");

OV_CORE_CALL_STATEMENT({
auto parsed = parseDeviceNameIntoConfig(device_name, params);
auto remoteContext = _impl->get_plugin(parsed._deviceName).create_context(parsed._config);
auto parsed = parse_device_name_into_config(device_name, params);
auto remoteContext = _impl->get_plugin(parsed.m_device_name).create_context(parsed.m_config);
return {remoteContext._ptr, remoteContext._so};
});
}
Expand All @@ -292,8 +292,8 @@ RemoteContext Core::get_default_context(const std::string& device_name) {
OPENVINO_ASSERT(device_name.find("BATCH") != 0, "BATCH device does not support default remote context");

OV_CORE_CALL_STATEMENT({
auto parsed = parseDeviceNameIntoConfig(device_name, AnyMap{});
auto remoteContext = _impl->get_plugin(parsed._deviceName).get_default_context(parsed._config);
auto parsed = parse_device_name_into_config(device_name, AnyMap{});
auto remoteContext = _impl->get_plugin(parsed.m_device_name).get_default_context(parsed.m_config);
return {remoteContext._ptr, remoteContext._so};
});
}
Expand Down
Loading
Loading