Skip Exp test (#8692)

* Skip Exp test

* Fix regexp

* One more attempt...

* Update exp.cpp
This commit is contained in:
Evgeny Talanin 2021-11-19 11:08:39 +03:00 committed by GitHub
parent ea0095ad6d
commit 2777820882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View File

@ -7,6 +7,8 @@
#include "openvino/op/exp.hpp" #include "openvino/op/exp.hpp"
#include "base_reference_test.hpp" #include "base_reference_test.hpp"
#include "functional_test_utils/skip_tests_config.hpp"
using namespace reference_tests; using namespace reference_tests;
using namespace ov; using namespace ov;
using namespace InferenceEngine; using namespace InferenceEngine;
@ -31,6 +33,7 @@ struct ExpParams {
class ReferenceExpLayerTest : public testing::TestWithParam<ExpParams>, public CommonReferenceTest { class ReferenceExpLayerTest : public testing::TestWithParam<ExpParams>, public CommonReferenceTest {
public: public:
void SetUp() override { void SetUp() override {
SKIP_IF_CURRENT_TEST_IS_DISABLED();
auto params = GetParam(); auto params = GetParam();
function = CreateFunction(params.pshape, params.inType, params.outType); function = CreateFunction(params.pshape, params.inType, params.outType);
inputData = {params.inputData}; inputData = {params.inputData};
@ -160,9 +163,7 @@ std::vector<ExpParams> generateExpCombinedParams() {
generateExpFloatParams<element::Type_t::f32>(), generateExpFloatParams<element::Type_t::f32>(),
generateExpFloatParams<element::Type_t::f16>(), generateExpFloatParams<element::Type_t::f16>(),
generateExpIntParams<element::Type_t::i32>(), generateExpIntParams<element::Type_t::i32>(),
generateExpIntParams<element::Type_t::i64>(), generateExpIntParams<element::Type_t::i64>()
generateExpUintParams<element::Type_t::u32>(),
generateExpUintParams<element::Type_t::u64>()
}; };
std::vector<ExpParams> combinedParams; std::vector<ExpParams> combinedParams;
@ -191,4 +192,4 @@ INSTANTIATE_TEST_SUITE_P(smoke_Exp_With_Hardcoded_Refs, ReferenceExpLayerTest,
INSTANTIATE_TEST_SUITE_P(smoke_Exp_In_Place_With_Hardcoded_Refs, ReferenceExpInPlaceLayerTest, INSTANTIATE_TEST_SUITE_P(smoke_Exp_In_Place_With_Hardcoded_Refs, ReferenceExpInPlaceLayerTest,
testing::ValuesIn(generateExpInPlaceCombinedParams()), ReferenceExpInPlaceLayerTest::getTestCaseName); testing::ValuesIn(generateExpInPlaceCombinedParams()), ReferenceExpInPlaceLayerTest::getTestCaseName);
} // namespace } // namespace

View File

@ -88,7 +88,9 @@ std::vector<std::string> disabledTestPatterns() {
R"(.*ReferenceSpaceToBatchLayerTest.*dType=u4.*)", R"(.*ReferenceSpaceToBatchLayerTest.*dType=u4.*)",
// CVS-64066 // CVS-64066
R"(.*ReferenceGRUCellTestHardsigmoidActivationFunction.*gru_cell_hardsigmoid_activation_function)", R"(.*ReferenceGRUCellTestHardsigmoidActivationFunction.*gru_cell_hardsigmoid_activation_function)",
R"(.*ReferenceErfLayerTest.*shape={8}.*)" // CVS-71381
R"(.*ReferenceExpLayerTest.*u32.*)",
R"(.*ReferenceExpLayerTest.*u64.*)",
}; };
#ifdef _WIN32 #ifdef _WIN32