diff --git a/src/inference/src/dev/core_impl.cpp b/src/inference/src/dev/core_impl.cpp index 2d67294d63b..b51c4d916eb 100644 --- a/src/inference/src/dev/core_impl.cpp +++ b/src/inference/src/dev/core_impl.cpp @@ -325,9 +325,8 @@ bool ov::CoreImpl::is_proxy_device(const ov::Plugin& plugin) const { } bool ov::CoreImpl::is_proxy_device(const std::string& dev_name) const { #ifdef PROXY_PLUGIN_ENABLED - auto parsed = ov::parseDeviceNameIntoConfig(dev_name); - return pluginRegistry.find(parsed._deviceName) != pluginRegistry.end() && - pluginRegistry.at(parsed._deviceName).pluginCreateFunc == ov::proxy::create_plugin; + return pluginRegistry.find(dev_name) != pluginRegistry.end() && + pluginRegistry.at(dev_name).pluginCreateFunc == ov::proxy::create_plugin; #else return false; #endif diff --git a/src/plugins/proxy/tests/batch_compliance_test.cpp b/src/plugins/proxy/tests/batch_compliance_test.cpp index f613bde1559..73cf894291f 100644 --- a/src/plugins/proxy/tests/batch_compliance_test.cpp +++ b/src/plugins/proxy/tests/batch_compliance_test.cpp @@ -9,7 +9,7 @@ using namespace ov::proxy::tests; TEST_F(ProxyTests, can_parse_and_inherit_batch_property) { - register_plugin_support_reshape(core, "MOCK_DEVICE", {{ov::proxy::configuration::alias.name(), "MOCK_DEVICE"}}); + register_plugin_support_reshape(core, "MOCK_DEVICE", {{ov::proxy::configuration::alias.name(), "ALIAS_MOCK"}}); auto available_devices = core.get_available_devices(); auto model = create_model_with_add(); auto compiled_model_default = core.compile_model(model, "MOCK_DEVICE", ov::hint::performance_mode("THROUGHPUT")); @@ -31,29 +31,4 @@ TEST_F(ProxyTests, can_parse_and_inherit_batch_property) { ov::hint::performance_mode("THROUGHPUT"), ov::hint::allow_auto_batching(false)); EXPECT_ANY_THROW(compiled_model_no_batch.get_property(ov::auto_batch_timeout)); -} - -TEST_F(ProxyTests, can_parse_and_inherit_batch_property_for_device_name_with_id) { - register_plugin_support_reshape(core, "MOCK_DEVICE", {{ov::proxy::configuration::alias.name(), "MOCK_DEVICE"}}); - auto available_devices = core.get_available_devices(); - auto model = create_model_with_add(); - auto compiled_model_default = core.compile_model(model, "MOCK_DEVICE.1", ov::hint::performance_mode("THROUGHPUT")); -#ifdef ENABLE_AUTO_BATCH - EXPECT_NO_THROW(compiled_model_default.get_property(ov::auto_batch_timeout)); // batch enabled by default - EXPECT_EQ(compiled_model_default.get_property(ov::auto_batch_timeout), 1000); // default value -#endif - auto compiled_model_with_batch = core.compile_model(model, - "MOCK_DEVICE.1", - ov::hint::performance_mode("THROUGHPUT"), - ov::hint::allow_auto_batching(true), - ov::auto_batch_timeout(8)); -#ifdef ENABLE_AUTO_BATCH - EXPECT_NO_THROW(compiled_model_with_batch.get_property(ov::auto_batch_timeout)); - EXPECT_EQ(compiled_model_with_batch.get_property(ov::auto_batch_timeout), 8); -#endif - auto compiled_model_no_batch = core.compile_model(model, - "MOCK_DEVICE.2", - ov::hint::performance_mode("THROUGHPUT"), - ov::hint::allow_auto_batching(false)); - EXPECT_ANY_THROW(compiled_model_no_batch.get_property(ov::auto_batch_timeout)); } \ No newline at end of file