From f4cf3a59c1f68fe69f2590e51d97a7992b9d00df Mon Sep 17 00:00:00 2001 From: "Zinoviev, Vladimir" Date: Mon, 28 Sep 2020 19:46:31 +0300 Subject: [PATCH] [LPT] Rollback device specific INT8 --- inference-engine/src/cldnn_engine/cldnn_engine.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/inference-engine/src/cldnn_engine/cldnn_engine.cpp b/inference-engine/src/cldnn_engine/cldnn_engine.cpp index ca92287b45ed24..e2180e1a26035e 100644 --- a/inference-engine/src/cldnn_engine/cldnn_engine.cpp +++ b/inference-engine/src/cldnn_engine/cldnn_engine.cpp @@ -284,7 +284,7 @@ ExecutableNetworkInternal::Ptr clDNNEngine::LoadExeNetworkImpl(const InferenceEn CLDNNPlugin::Config conf = _impl->m_config; auto device_info = GetDeviceInfo(config); - conf.enableInt8 = true; // device_info.supports_imad || device_info.supports_immad; + conf.enableInt8 = device_info.supports_imad || device_info.supports_immad; conf.UpdateFromMap(config); if (conf.enableDynamicBatch) { @@ -338,7 +338,7 @@ ExecutableNetworkInternal::Ptr clDNNEngine::LoadExeNetworkImpl(const InferenceEn CLDNNPlugin::Config conf = getContextImpl(casted)->GetConfig(); auto device_info = GetDeviceInfo(config); - conf.enableInt8 = true; // device_info.supports_imad || device_info.supports_immad; + conf.enableInt8 = device_info.supports_imad || device_info.supports_immad; conf.UpdateFromMap(config); if (conf.enableDynamicBatch) { @@ -383,16 +383,13 @@ void clDNNEngine::QueryNetwork(const ICNNNetwork& network, std::string>& config, QueryNetworkResult& res) const { GetDeviceInfo(config); // Verify device id - CLDNNPlugin::Config conf = _impl->m_config; - conf.enableInt8 = true; // device_info.supports_imad || device_info.supports_immad; - conf.UpdateFromMap(config); auto function = network.getFunction(); if (function != nullptr) { std::unordered_set originalOps; for (auto&& node : function->get_ops()) { originalOps.emplace(node->get_friendly_name()); } - auto clonedNetwork = CloneAndTransformNetwork(network, conf); + auto clonedNetwork = CloneAndTransformNetwork(network, _impl->m_config); std::unordered_set supported; std::unordered_set unsupported;