Co-authored-by: Nadezhda Ageeva <nadezhda.ageeva@intel.com>
This commit is contained in:
parent
349d1f6647
commit
827025f8ee
|
|
@ -635,23 +635,22 @@ QueryNetworkResult MultiDeviceInferencePlugin::QueryNetwork(const CNNNetwork&
|
|||
queryconfig.UpdateFromMap(config, GetName(), true);
|
||||
auto fullConfig = queryconfig._keyConfigMap;
|
||||
auto priorities = fullConfig.find(MultiDeviceConfigParams::KEY_MULTI_DEVICE_PRIORITIES);
|
||||
if (priorities->second.empty()) {
|
||||
IE_THROW() << "KEY_MULTI_DEVICE_PRIORITIES key is not set for " << GetName() << " device";
|
||||
}
|
||||
auto metaDevices = ParseMetaDevices(priorities->second, fullConfig);
|
||||
std::unordered_set<std::string> supportedLayers;
|
||||
for (auto&& value : metaDevices) {
|
||||
auto deviceQr = GetCore()->QueryNetwork(network, value.deviceName, value.config);
|
||||
std::unordered_set<std::string> deviceSupportedLayers;
|
||||
for (auto&& layerQr : deviceQr.supportedLayersMap) {
|
||||
deviceSupportedLayers.emplace(layerQr.first);
|
||||
if (!priorities->second.empty()) {
|
||||
auto metaDevices = ParseMetaDevices(priorities->second, fullConfig);
|
||||
std::unordered_set<std::string> supportedLayers;
|
||||
for (auto&& value : metaDevices) {
|
||||
auto deviceQr = GetCore()->QueryNetwork(network, value.deviceName, value.config);
|
||||
std::unordered_set<std::string> deviceSupportedLayers;
|
||||
for (auto&& layerQr : deviceQr.supportedLayersMap) {
|
||||
deviceSupportedLayers.emplace(layerQr.first);
|
||||
}
|
||||
supportedLayers = supportedLayers.empty()
|
||||
? deviceSupportedLayers : (deviceSupportedLayers.empty()
|
||||
? supportedLayers : InferenceEngine::details::Intersection(supportedLayers, deviceSupportedLayers));
|
||||
}
|
||||
for (auto&& supportedLayer : supportedLayers) {
|
||||
queryResult.supportedLayersMap[supportedLayer] = GetName();
|
||||
}
|
||||
supportedLayers = supportedLayers.empty()
|
||||
? deviceSupportedLayers : (deviceSupportedLayers.empty()
|
||||
? supportedLayers : InferenceEngine::details::Intersection(supportedLayers, deviceSupportedLayers));
|
||||
}
|
||||
for (auto&& supportedLayer : supportedLayers) {
|
||||
queryResult.supportedLayersMap[supportedLayer] = GetName();
|
||||
}
|
||||
return queryResult;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -169,8 +169,9 @@ std::vector<std::string> disabledTestPatterns() {
|
|||
// Issue: 95590
|
||||
R"(.*CachingSupportCase.*CompileModelCacheTestBase.*(TIwithLSTMcell1|MatMulBias|2InputSubtract)_(u|i).*)",
|
||||
// Issue: 95607
|
||||
R"(.*OVClass.*QueryNetwork.*QueryNetwork.*)",
|
||||
R"(.*OVClass.*LoadNetwork*(HETERO|MULTI).*)",
|
||||
R"(.*OVClass.*LoadNetwork.*LoadNetwork(HETEROAndDeviceIDThrows|MULTIwithAUTONoThrow|HETEROwithMULTINoThrow|MULTIwithHETERONoThrow).*)",
|
||||
R"(.*OVClass.*LoadNetwork.*LoadNetwork(HETEROWithDeviceIDNoThrow|WithDeviceID|WithBigDeviceIDThrows|WithInvalidDeviceIDThrows|HETEROWithBigDeviceIDThrows).*)",
|
||||
R"(.*OVClass.*QueryNetwork.*QueryNetwork(HETEROWithDeviceIDNoThrow|WithDeviceID|WithBigDeviceIDThrows|WithInvalidDeviceIDThrows|HETEROWithBigDeviceIDThrows).*)",
|
||||
R"(.*OVClass.*LoadNetwork.*(DeviceID|MultiWithoutSettingDevicePrioritiesThrows).*)",
|
||||
R"(.*OVClassLoadNetworkTest.*QueryNetwork(MULTIWithHETERO|HETEROWithMULTI)NoThrow_V10.*)",
|
||||
R"(.*OVClassNetworkTestP.*QueryNetworkMultiThrows.*)",
|
||||
|
|
|
|||
|
|
@ -116,8 +116,6 @@ std::vector<std::string> disabledTestPatterns() {
|
|||
R"(.*smoke_select_CompareWithRefsNumpy_dynamic_range.*)",
|
||||
// Issue: 90183
|
||||
R"(.*VirtualPlugin.*BehaviorTests.*OVHoldersTestWithConfig.*LoadedTensor.*target_device=MULTI.*)",
|
||||
// Issue: 95618
|
||||
R"(.*OVClassLoadNetworkTest.*OVClassLoadNetworkTest.*QueryNetworkMULTIWithHETERONoThrow_V10.*)",
|
||||
R"(.*CachingSupportCase.*LoadNetworkCacheTestBase.*CompareWithRefImpl.*)",
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
R"(.*Auto_KernelCachingSupportCase.*CanCreateCacheDirAndDumpBinariesUnicodePath.*)",
|
||||
|
|
|
|||
|
|
@ -1296,7 +1296,7 @@ TEST_P(OVClassLoadNetworkTest, QueryNetworkMULTIWithHETERONoThrow_V10) {
|
|||
std::string devices;
|
||||
auto availableDevices = ie.get_property(target_device, ov::available_devices);
|
||||
for (auto&& device : availableDevices) {
|
||||
devices += std::string(CommonTestUtils::DEVICE_HETERO) + "." + target_device;
|
||||
devices += std::string(CommonTestUtils::DEVICE_HETERO) + "." + device;
|
||||
if (&device != &(availableDevices.back())) {
|
||||
devices += ',';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue