Deprecated IGNORE_IR_STATISTIC VPU option (#1028)

This commit is contained in:
Ilya Lavrenov
2020-06-20 10:38:47 +03:00
committed by GitHub
parent 9c607528ef
commit bbfc9bbc14
3 changed files with 6 additions and 0 deletions

View File

@@ -123,11 +123,13 @@ DECLARE_VPU_CONFIG_VALUE(NDHWC);
DECLARE_VPU_CONFIG_KEY(CUSTOM_LAYERS);
/**
* @deprecated IR statistic is not available in IR v10. The option will be removed in 2021.1
* @brief Ignore statistic in IR by plugin.
* Plugin could use statistic present in IR in order to try to improve calculations precision.
* If you don't want statistic to be used enable this option.
* This option should be used with values: CONFIG_VALUE(YES) or CONFIG_VALUE(NO) (default)
*/
INFERENCE_ENGINE_DEPRECATED("IR statistic is not available in IR v10. The option will be removed in 2021.1")
DECLARE_VPU_CONFIG_KEY(IGNORE_IR_STATISTIC);
/**

View File

@@ -160,7 +160,9 @@ void ParsedConfig::parse(const std::map<std::string, std::string>& config) {
setOption(_compileConfig.hwExtraSplit, switches, config, VPU_CONFIG_KEY(HW_EXTRA_SPLIT));
setOption(_compileConfig.injectSwOps, switches, config, VPU_CONFIG_KEY(HW_INJECT_STAGES));
setOption(_compileConfig.mergeHwPoolToConv, switches, config, VPU_CONFIG_KEY(HW_POOL_CONV_MERGE));
IE_SUPPRESS_DEPRECATED_START
setOption(_compileConfig.ignoreIRStatistic, switches, config, VPU_CONFIG_KEY(IGNORE_IR_STATISTIC));
IE_SUPPRESS_DEPRECATED_END
setOption(_compileConfig.hwDilation, switches, config, VPU_CONFIG_KEY(HW_DILATION));
setOption(_compileConfig.forceDeprecatedCnnConversion, switches, config, VPU_CONFIG_KEY(FORCE_DEPRECATED_CNN_CONVERSION));
setOption(_compileConfig.disableReorder, switches, config, VPU_CONFIG_KEY(DISABLE_REORDER));

View File

@@ -107,6 +107,7 @@ Engine::Engine(std::shared_ptr<IMvnc> mvnc) :
_pluginName = "MYRIAD";
IE_SUPPRESS_DEPRECATED_START
_config = {
{ KEY_VPU_HW_STAGES_OPTIMIZATION, "ON" },
{ KEY_LOG_LEVEL, "LOG_NONE" },
@@ -120,6 +121,7 @@ Engine::Engine(std::shared_ptr<IMvnc> mvnc) :
{ KEY_CONFIG_FILE, "" },
{ KEY_DEVICE_ID, "" },
};
IE_SUPPRESS_DEPRECATED_END
}
InferenceEngine::ExecutableNetwork Engine::ImportNetwork(