forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revise Split Single Layer Tests (openvinotoolkit#5190)
* Add serialization single layer tests * Add more precisions, axis and num of splits in single layer tests * Add op to script of trusted operations
- Loading branch information
1 parent
791190d
commit d711f5d
Showing
3 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
inference-engine/tests/functional/inference_engine/serialization/single_layer/split.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright (C) 2021 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
#include <vector> | ||
|
||
#include "shared_test_classes/single_layer/split.hpp" | ||
|
||
using namespace LayerTestsDefinitions; | ||
|
||
namespace { | ||
|
||
TEST_P(SplitLayerTest, Serialize) { | ||
Serialize(); | ||
} | ||
|
||
const std::vector<InferenceEngine::Precision> netPrecisions = { | ||
InferenceEngine::Precision::FP32, | ||
InferenceEngine::Precision::I32, | ||
InferenceEngine::Precision::U16, | ||
InferenceEngine::Precision::BOOL}; | ||
|
||
INSTANTIATE_TEST_CASE_P( | ||
smoke_Split_Serialization, SplitLayerTest, | ||
::testing::Combine( | ||
::testing::Values(1, 2, 5, 10), | ||
::testing::Values(0, 1, 2, 3), | ||
::testing::ValuesIn(netPrecisions), | ||
::testing::Values(InferenceEngine::Precision::UNSPECIFIED), | ||
::testing::Values(InferenceEngine::Precision::UNSPECIFIED), | ||
::testing::Values(InferenceEngine::Layout::ANY), | ||
::testing::Values(InferenceEngine::Layout::ANY), | ||
::testing::Values(std::vector<size_t>{20, 30, 50, 50}), | ||
::testing::Values(std::vector<size_t>({})), | ||
::testing::Values(CommonTestUtils::DEVICE_CPU)), | ||
SplitLayerTest::getTestCaseName | ||
); | ||
|
||
} // namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,6 +91,7 @@ | |
'Sin-0', | ||
'SoftPlus-4', | ||
'Softmax-1', | ||
'Split-1', | ||
'StridedSlice-1', | ||
'Substract-1', | ||
'Swish-4', | ||
|