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

@@ -26,10 +26,12 @@ class PerformanceModeValidator : public BaseValidator {
public:
bool is_valid(const ov::Any& v) const override {
auto mode = v.as<ov::hint::PerformanceMode>();
OPENVINO_SUPPRESS_DEPRECATED_START
return mode == ov::hint::PerformanceMode::CUMULATIVE_THROUGHPUT ||
mode == ov::hint::PerformanceMode::THROUGHPUT ||
mode == ov::hint::PerformanceMode::LATENCY ||
mode == ov::hint::PerformanceMode::UNDEFINED;
OPENVINO_SUPPRESS_DEPRECATED_END
}
};