Deprecated UNDEFINED values for execution / performance hints (#16563)

* Deprecated UNDEFINED values for execution / performance hints

* Update src/tests/functional/plugin/gpu/shared_tests_instances/behavior/ov_plugin/properties_tests.cpp

* Fixes

* Fixes
This commit is contained in:
Ilya Lavrenov
2023-03-30 13:48:19 +04:00
committed by GitHub
parent 5b203efb9c
commit ccf9c19f61
20 changed files with 41 additions and 45 deletions

View File

@@ -55,7 +55,7 @@ struct Config {
static const InferenceEngine::Parameter GetImpactingModelCompilationProperties(bool compiled);
static const InferenceEngine::Parameter GetSupportedProperties(bool compiled = false);
ov::hint::PerformanceMode performance_mode = ov::hint::PerformanceMode::UNDEFINED;
ov::hint::PerformanceMode performance_mode = ov::hint::PerformanceMode::LATENCY;
// default precision of GNA hardware model
ov::element::Type inference_precision = ov::element::undefined;

View File

@@ -225,7 +225,6 @@ INSTANTIATE_TEST_SUITE_P(
ov::hint::inference_precision(ov::element::i16),
ov::hint::performance_mode(ov::hint::PerformanceMode::LATENCY),
ov::hint::performance_mode(ov::hint::PerformanceMode::THROUGHPUT),
ov::hint::performance_mode(ov::hint::PerformanceMode::UNDEFINED),
ov::hint::num_requests(1),
ov::intel_gna::execution_target(ov::intel_gna::HWGeneration::GNA_2_0),
ov::intel_gna::execution_target(ov::intel_gna::HWGeneration::GNA_3_0),

View File

@@ -151,9 +151,6 @@ TEST(OVClassBasicTest, smoke_SetConfigAfterCreatedPerformanceHint) {
ov::Core core;
ov::hint::PerformanceMode mode;
OV_ASSERT_NO_THROW(mode = core.get_property("GNA", ov::hint::performance_mode));
ASSERT_EQ(ov::hint::PerformanceMode::UNDEFINED, mode);
OV_ASSERT_NO_THROW(core.set_property("GNA", ov::hint::performance_mode(ov::hint::PerformanceMode::LATENCY)));
OV_ASSERT_NO_THROW(mode = core.get_property("GNA", ov::hint::performance_mode));
ASSERT_EQ(ov::hint::PerformanceMode::LATENCY, mode);

View File

@@ -31,7 +31,7 @@ const std::map<std::string, std::string> supportedConfigKeysWithDefaults = {
{GNA_CONFIG_KEY(LIB_N_THREADS), "1"},
{CONFIG_KEY(SINGLE_THREAD), CONFIG_VALUE(YES)},
{CONFIG_KEY(LOG_LEVEL), PluginConfigParams::LOG_NONE},
{CONFIG_KEY(PERFORMANCE_HINT), "UNDEFINED"},
{CONFIG_KEY(PERFORMANCE_HINT), "LATENCY"},
{CONFIG_KEY(PERFORMANCE_HINT_NUM_REQUESTS), "1"},
{ov::hint::execution_mode.name(), ov::util::to_string<ov::hint::ExecutionMode>(ov::hint::ExecutionMode::ACCURACY)}};
IE_SUPPRESS_DEPRECATED_END