OpenVINO runtime Configuration API (#7750)

* New configuration API

* Review fix

* review coments

* fixed device name map

* fixed header

* code stile

* fixed optimization capabilities

* flatten properties

* dox fix

* doc

* merge conflicts

* fixed merge conflicts
This commit is contained in:
Anton Pankratov authored and GitHub committed 2022-01-21 10:32:57 +03:00
1 parent a3e2dbe353
commit 400e9ad916
154 files changed
+2032 -867

No files matched your search

@@ -20,13 +20,13 @@ const std::vector<ov::element::Type_t> netPrecisions = {
ov::element::f16,
ov::element::f32,
};
const std::vector<std::map<std::string, std::string>> configs = {
const std::vector<ov::AnyMap> configs = {
{},
};
const std::vector<std::map<std::string, std::string>> multiConfigs = {
const std::vector<ov::AnyMap> multiConfigs = {
{{InferenceEngine::MultiDeviceConfigParams::KEY_MULTI_DEVICE_PRIORITIES, CommonTestUtils::DEVICE_TEMPLATE}}};
const std::vector<std::map<std::string, std::string>> heteroConfigs = {
const std::vector<ov::AnyMap> heteroConfigs = {
{{"TARGET_FALLBACK", CommonTestUtils::DEVICE_TEMPLATE}}};
INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests,
@@ -9,7 +9,7 @@
using namespace ov::test::behavior;
namespace {
const std::vector<std::map<std::string, std::string>> configs = {
const std::vector<ov::AnyMap> configs = {
{}
};
@@ -7,7 +7,7 @@
using namespace ov::test::behavior;
namespace {
const std::vector<std::map<std::string, std::string>> configs = {
const std::vector<ov::AnyMap> configs = {
{},
};
@@ -10,11 +10,11 @@ using namespace ov::test::behavior;
namespace {
const std::vector<std::map<std::string, std::string>> configs = {
const std::vector<ov::AnyMap> configs = {
{}
};
const std::vector<std::map<std::string, std::string>> HeteroConfigs = {
const std::vector<ov::AnyMap> HeteroConfigs = {
{{"TARGET_FALLBACK", CommonTestUtils::DEVICE_TEMPLATE}}};
INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests, OVInferRequestDynamicTests,
@@ -9,11 +9,11 @@ using namespace ov::test::behavior;
namespace {
const std::vector<std::map<std::string, std::string>> configs = {
const std::vector<ov::AnyMap> configs = {
{}
};
const std::vector<std::map<std::string, std::string>> HeteroConfigs = {
const std::vector<ov::AnyMap> HeteroConfigs = {
{{"TARGET_FALLBACK", CommonTestUtils::DEVICE_TEMPLATE}}};
INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests, OVInferenceChaining,
@@ -9,7 +9,7 @@
using namespace ov::test::behavior;
namespace {
const std::vector<std::map<std::string, std::string>> configs = {
const std::vector<ov::AnyMap> configs = {
{}
};
@@ -38,12 +38,12 @@ std::vector<ov::element::Type> prcs = {
ov::element::u64,
};
const std::vector<std::map<std::string, std::string>> emptyConfigs = {{}};
const std::vector<ov::AnyMap> emptyConfigs = {{}};
const std::vector<std::map<std::string, std::string>> HeteroConfigs = {
const std::vector<ov::AnyMap> HeteroConfigs = {
{{"TARGET_FALLBACK", CommonTestUtils::DEVICE_TEMPLATE}}};
const std::vector<std::map<std::string, std::string>> Multiconfigs = {
const std::vector<ov::AnyMap> Multiconfigs = {
{{ MULTI_CONFIG_KEY(DEVICE_PRIORITIES) , CommonTestUtils::DEVICE_TEMPLATE}}
};
@@ -10,7 +10,7 @@ using namespace ov::test::behavior;
namespace {
const std::vector<std::map<std::string, std::string>> configs = {
const std::vector<ov::AnyMap> configs = {
{}
};
@@ -9,7 +9,7 @@
using namespace ov::test::behavior;
namespace {
const std::vector<std::map<std::string, std::string>> configs = {
const std::vector<ov::AnyMap> configs = {
{}
};
@@ -110,7 +110,7 @@ std::vector<ngraph::helpers::EltwiseTypes> eltwiseOpTypesSingleThread = {
ngraph::helpers::EltwiseTypes::POWER,
};
std::map<std::string, std::string> additional_config_single_thread = {
ov::AnyMap additional_config_single_thread = {
{"CPU_THREADS_NUM", "1"}
};
@@ -40,7 +40,7 @@ const auto params2D_static = testing::Combine(
testing::ValuesIn(ov::test::static_shapes_to_test_representation(inputStaticShape2D)),
testing::ValuesIn(axis2D),
testing::Values(CommonTestUtils::DEVICE_TEMPLATE),
testing::Values(std::map<std::string, std::string>())
testing::Values(ov::AnyMap())
);
const auto params2D_dynamic = testing::Combine(
@@ -50,7 +50,7 @@ const auto params2D_dynamic = testing::Combine(
testing::ValuesIn(inputDynamicShape2D),
testing::ValuesIn(axis2D),
testing::Values(CommonTestUtils::DEVICE_TEMPLATE),
testing::Values(std::map<std::string, std::string>())
testing::Values(ov::AnyMap())
);
INSTANTIATE_TEST_SUITE_P(
@@ -88,7 +88,7 @@ const auto params4Dstatic = testing::Combine(
testing::ValuesIn(ov::test::static_shapes_to_test_representation(inputStaticShape4D)),
testing::ValuesIn(axis4D),
testing::Values(CommonTestUtils::DEVICE_TEMPLATE),
testing::Values(std::map<std::string, std::string>())
testing::Values(ov::AnyMap())
);
const auto params4Ddynamic = testing::Combine(
@@ -98,7 +98,7 @@ const auto params4Ddynamic = testing::Combine(
testing::ValuesIn(inputDynamicShape4D),
testing::ValuesIn(axis4D),
testing::Values(CommonTestUtils::DEVICE_TEMPLATE),
testing::Values(std::map<std::string, std::string>())
testing::Values(ov::AnyMap())
);
INSTANTIATE_TEST_SUITE_P(