From 483b3828ca6052fb6b3d1f8c994af440aa238232 Mon Sep 17 00:00:00 2001 From: Anton Dudchenko Date: Wed, 16 Feb 2022 13:06:13 +0300 Subject: [PATCH] [VPU] Enable CheckTensorPrecision tests (#10390) Enable CheckTensorPrecision tests for the myriad plugin. -75944 --- .../behavior/ov_infer_request/io_tensor.cpp | 22 +++++++++++++++++++ .../skip_tests_config.cpp | 13 +++++++++++ 2 files changed, 35 insertions(+) diff --git a/src/tests/functional/plugin/myriad/shared_tests_instances/behavior/ov_infer_request/io_tensor.cpp b/src/tests/functional/plugin/myriad/shared_tests_instances/behavior/ov_infer_request/io_tensor.cpp index 49e7a88dd07..68e1b6a3e19 100644 --- a/src/tests/functional/plugin/myriad/shared_tests_instances/behavior/ov_infer_request/io_tensor.cpp +++ b/src/tests/functional/plugin/myriad/shared_tests_instances/behavior/ov_infer_request/io_tensor.cpp @@ -79,4 +79,26 @@ INSTANTIATE_TEST_SUITE_P(smoke_Auto_BehaviorTests, OVInferRequestIOTensorSetPrec ::testing::ValuesIn(Autoconfigs)), OVInferRequestIOTensorSetPrecisionTest::getTestCaseName); + +INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests, OVInferRequestCheckTensorPrecision, + ::testing::Combine( + ::testing::ValuesIn(prcs), + ::testing::Values(CommonTestUtils::DEVICE_MYRIAD), + ::testing::ValuesIn(configs)), + OVInferRequestCheckTensorPrecision::getTestCaseName); + +INSTANTIATE_TEST_SUITE_P(smoke_Multi_BehaviorTests, OVInferRequestCheckTensorPrecision, + ::testing::Combine( + ::testing::ValuesIn(prcs), + ::testing::Values(CommonTestUtils::DEVICE_MULTI), + ::testing::ValuesIn(Multiconfigs)), + OVInferRequestCheckTensorPrecision::getTestCaseName); + +INSTANTIATE_TEST_SUITE_P(smoke_Auto_BehaviorTests, OVInferRequestCheckTensorPrecision, + ::testing::Combine( + ::testing::ValuesIn(prcs), + ::testing::Values(CommonTestUtils::DEVICE_AUTO), + ::testing::ValuesIn(Autoconfigs)), + OVInferRequestCheckTensorPrecision::getTestCaseName); + } // namespace diff --git a/src/tests/functional/plugin/myriad/shared_tests_instances/skip_tests_config.cpp b/src/tests/functional/plugin/myriad/shared_tests_instances/skip_tests_config.cpp index 851a4d79c26..e892cecbc8b 100644 --- a/src/tests/functional/plugin/myriad/shared_tests_instances/skip_tests_config.cpp +++ b/src/tests/functional/plugin/myriad/shared_tests_instances/skip_tests_config.cpp @@ -69,5 +69,18 @@ std::vector disabledTestPatterns() { R"(.*EltwiseLayerTest.*OpType=SqDiff.*PARAMETER.*SCALAR.*)", R"(.*EltwiseLayerTest.*TS=\(\(16\.16\.96\)_\(96\)_\).*OpType=SqDiff.*)", R"(.*EltwiseLayerTest.*TS=\(\(52\.1\.52\.3\.2\)_\(2\)_\).*OpType=SqDiff.*)", + + // Tests with unsupported precision + ".*InferRequestCheckTensorPrecision.*type=boolean.*", + ".*InferRequestCheckTensorPrecision.*type=bf16.*", + ".*InferRequestCheckTensorPrecision.*type=f64.*", + ".*InferRequestCheckTensorPrecision.*type=i4.*", + ".*InferRequestCheckTensorPrecision.*type=i16.*", + ".*InferRequestCheckTensorPrecision.*type=i64.*", + ".*InferRequestCheckTensorPrecision.*type=u1.*", + ".*InferRequestCheckTensorPrecision.*type=u4.*", + ".*InferRequestCheckTensorPrecision.*type=u8.*", + ".*InferRequestCheckTensorPrecision.*type=u16.*", + ".*InferRequestCheckTensorPrecision.*type=u64.*", }; }