[GNA] Restore deprecated options for GNA Plugin (#9611)

* Restore deprecatet options for GNA Plugin

* Apply review use INFERENCE_ENGINE_DEPRECATED macro

* Deprecate PWL_UNIFORM_DESIGN and PWL_MAX_ERROR_PERCENT

* Add doxygen deprecation message

* Use string for deprecated config keys to avoid compile time errors

* Use IE_SUPPRESS_DEPRECATED_START

* Fixup lint

* Fix indentation

* Usue future release instead 2022.2 in deprecated message, supress deprecation error in tests

* Fix test
This commit is contained in:
Krzysztof Bruniecki
2022-01-17 08:32:02 +01:00
committed by GitHub
parent 1fc013208d
commit 97df59a4ab
4 changed files with 114 additions and 9 deletions

View File

@@ -172,12 +172,16 @@ int main(int argc, char* argv[]) {
gnaPluginConfig[InferenceEngine::GNAConfigParams::KEY_GNA_EXEC_TARGET] = FLAGS_exec_target;
gnaPluginConfig[InferenceEngine::GNAConfigParams::KEY_GNA_COMPILE_TARGET] = FLAGS_compile_target;
gnaPluginConfig[GNA_CONFIG_KEY(COMPACT_MODE)] = CONFIG_VALUE(NO);
IE_SUPPRESS_DEPRECATED_START
gnaPluginConfig[GNA_CONFIG_KEY(PWL_MAX_ERROR_PERCENT)] = std::to_string(FLAGS_pwl_me);
IE_SUPPRESS_DEPRECATED_END
// -----------------------------------------------------------------------------------------------------
// --------------------------- Write model to file --------------------------------------------------
// Embedded GNA model dumping (for Intel(R) Speech Enabling Developer Kit)
if (!FLAGS_we.empty()) {
IE_SUPPRESS_DEPRECATED_START
gnaPluginConfig[InferenceEngine::GNAConfigParams::KEY_GNA_FIRMWARE_MODEL_IMAGE] = FLAGS_we;
IE_SUPPRESS_DEPRECATED_END
}
// -----------------------------------------------------------------------------------------------------
// --------------------------- Step 2. Loading model to the device ------------------------------------------