[IE TESTS] Move SLT classes to SharedTestClasses lib & add serialization functionality to the common class (#3431)

* [IE TESTS] Changing functional test utils structure

* Example

* Remove extra

* Apply comments

* fixes

* [IE TESTS] Change the structure

* Continue

* step 3

* [IE TESTS] Complete transition single layer test classes

* [IE TESTS] Transition Subgraph

* Fix subgraph namespaces

* fix

* Apply comments

* latm fix
This commit is contained in:
Irina Efode 2020-12-15 22:32:00 +03:00 committed by GitHub
parent ab996da912
commit 602f8f2e08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
569 changed files with 6242 additions and 6052 deletions

View File

@ -0,0 +1,8 @@
// Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "functional_test_utils/core_config.hpp"
void CoreConfiguration(LayerTestsUtils::LayerTestsCommon* test) {
}

View File

@ -1,8 +0,0 @@
// Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "functional_test_utils/plugin_config.hpp"
void PreparePluginConfiguration(LayerTestsUtils::LayerTestsCommon* test) {
}

View File

@ -2,5 +2,6 @@
# SPDX-License-Identifier: Apache-2.0
#
add_subdirectory(shared_test_classes)
add_subdirectory(inference_engine)
add_subdirectory(plugin)

View File

@ -14,6 +14,7 @@ set(LINK_LIBRARIES
inference_engine_transformations
openvino::itt
openvino::conditional_compilation
sharedTestClasses
)
set(DEPENDENCIES
mock_engine
@ -21,6 +22,7 @@ set(DEPENDENCIES
inference_engine_ir_v7_reader
template_extension
lptNgraphFunctions
sharedTestClasses
)
if (NGRAPH_ONNX_IMPORT_ENABLE)

View File

@ -21,7 +21,7 @@
#include <transformations/opset_conversions/convert_opset2_to_opset1.hpp>
#include <transformations/opset_conversions/convert_opset3_to_opset2.hpp>
#include "generic_ie.hpp"
#include "functional_test_utils/low_precision_transformations/layer_transformation.hpp"
#include "shared_test_classes/base/low_precision_transformations/layer_transformation.hpp"
using namespace testing;
using namespace InferenceEngine;

View File

@ -0,0 +1,8 @@
// Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "functional_test_utils/core_config.hpp"
void CoreConfiguration(LayerTestsUtils::LayerTestsCommon* test) {
}

View File

@ -0,0 +1,39 @@
// Copyright (C) 2019 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vector>
#include "shared_test_classes/single_layer/variadic_split.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
namespace {
TEST_P(VariadicSplitLayerTest, Serialize) {
Serialize();
}
const std::vector<InferenceEngine::Precision> netPrecisions = {
InferenceEngine::Precision::FP32,
InferenceEngine::Precision::FP16
};
// Sum of elements numSplits = inputShapes[Axis]
const std::vector<std::vector<size_t>> numSplits = {
{1, 16, 5, 8},
};
INSTANTIATE_TEST_CASE_P(smoke_NumSplitsCheck, VariadicSplitLayerTest,
::testing::Combine(
::testing::ValuesIn(numSplits),
::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>({30, 30, 30, 30})),
::testing::Values(CommonTestUtils::DEVICE_CPU)),
VariadicSplitLayerTest::getTestCaseName);
} // namespace

View File

@ -16,7 +16,7 @@
#include <vector>
#include "ngraph/opsets/opset1.hpp"
#include "functional_test_utils/layer_test_utils.hpp"
#include "shared_test_classes/base/layer_test_utils.hpp"
#include "common_test_utils/common_utils.hpp"
#include "functional_test_utils/blob_utils.hpp"
#include <ie_system_conf.h>

View File

@ -16,7 +16,7 @@
#include "functional_test_utils/blob_utils.hpp"
#include "common_test_utils/common_utils.hpp"
#include "functional_test_utils/layer_test_utils.hpp"
#include "shared_test_classes/base/layer_test_utils.hpp"
#include "ngraph/opsets/opset1.hpp"
using namespace std;

View File

@ -5,7 +5,7 @@
#include <string>
#include <fstream>
#include "functional_test_utils/layer_test_utils.hpp"
#include "shared_test_classes/base/layer_test_utils.hpp"
#include "ie_system_conf.h"
#include <ngraph/ngraph.hpp>

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <functional_test_utils/behavior_test_utils.hpp>
#include <base/behavior_test_utils.hpp>
#include "multi-device/multi_device_config.hpp"
#include "behavior/set_preprocess.hpp"

View File

@ -2,9 +2,9 @@
// SPDX-License-Identifier: Apache-2.0
//
#include "functional_test_utils/plugin_config.hpp"
#include "functional_test_utils/core_config.hpp"
void PreparePluginConfiguration(LayerTestsUtils::LayerTestsCommon* test) {
void CoreConfiguration(LayerTestsUtils::LayerTestsCommon* test) {
// Within the test scope we don't need any implicit bf16 optimisations, so let's run the network as is.
auto& configuration = test->GetConfiguration();
if (!configuration.count(InferenceEngine::PluginConfigParams::KEY_ENFORCE_BF16)) {

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include "functional_test_utils/low_precision_transformations/layer_transformation.hpp"
#include "shared_test_classes/base/low_precision_transformations/layer_transformation.hpp"
#include <memory>
#include <tuple>
@ -34,10 +34,10 @@
#include <legacy/ie_util_internal.hpp>
#include "functional_test_utils/plugin_cache.hpp"
#include "functional_test_utils/layer_test_utils.hpp"
#include "shared_test_classes/base/layer_test_utils.hpp"
#include "functional_test_utils/blob_utils.hpp"
#include "functional_test_utils/layer_test_utils.hpp"
#include "functional_test_utils/low_precision_transformations/layer_transformation.hpp"
#include "shared_test_classes/base/layer_test_utils.hpp"
#include "shared_test_classes/base/low_precision_transformations/layer_transformation.hpp"
#include <low_precision/transformer.hpp>
#include <low_precision/convolution.hpp>

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/constant_result.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
INSTANTIATE_TEST_CASE_P(smoke_Check, ConstantResultSubgraphTest,

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/conv_eltwise_fusion.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
const std::vector<ngraph::element::Type> types{ngraph::element::f32, ngraph::element::f16};

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/convert_pad_to_group_conv.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
const std::vector<std::vector<int64_t>> pads_1d{

View File

@ -7,7 +7,7 @@
#include "common_test_utils/test_constants.hpp"
#include "subgraph_tests/matmul_squeeze_add.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
const std::vector<InferenceEngine::Precision> netPrecisions = {

View File

@ -6,7 +6,7 @@
#include "subgraph_tests/multiply_add.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/quantized_convolution_backprop_data.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
using namespace ngraph::helpers;
namespace {

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/quantized_group_convolution.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
using namespace ngraph::helpers;
namespace {

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/quantized_group_convolution_backprop_data.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
using namespace ngraph::helpers;
namespace {

View File

@ -6,7 +6,7 @@
#include "subgraph_tests/quantized_mat_mul.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
using namespace ngraph::helpers;
namespace {

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/range_add.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/relu_shape_of.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
const std::vector<InferenceEngine::Precision> netPrecisions = {

View File

@ -4,7 +4,7 @@
#include "subgraph_tests/reshape_squeeze_reshape_relu.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
std::vector<ShapeAxesTuple> inputs{

View File

@ -6,7 +6,7 @@
#include "subgraph_tests/split_concat_memory.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/split_conv_concat.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <single_layer_tests/activation.hpp>
#include <shared_test_classes/single_layer/activation.hpp>
#include "test_utils/cpu_test_utils.hpp"
using namespace InferenceEngine;

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <single_layer_tests/convert.hpp>
#include <shared_test_classes/single_layer/convert.hpp>
using namespace LayerTestsDefinitions;
using namespace InferenceEngine;

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <single_layer_tests/strided_slice.hpp>
#include <shared_test_classes/single_layer/strided_slice.hpp>
#include "ngraph_functions/builders.hpp"
#include "test_utils/cpu_test_utils.hpp"

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <single_layer_tests/eltwise.hpp>
#include <shared_test_classes/single_layer/eltwise.hpp>
#include <ngraph_functions/builders.hpp>
#include "test_utils/cpu_test_utils.hpp"

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <single_layer_tests/group_convolution.hpp>
#include <shared_test_classes/single_layer/group_convolution.hpp>
#include "test_utils/cpu_test_utils.hpp"
using namespace InferenceEngine;
@ -10,6 +10,9 @@ using namespace CPUTestUtils;
namespace CPULayerTestsDefinitions {
using groupConvLayerTestParamsSet = LayerTestsDefinitions::groupConvLayerTestParamsSet;
using groupConvSpecificParams = LayerTestsDefinitions::groupConvSpecificParams;
typedef std::tuple<
groupConvLayerTestParamsSet,
CPUSpecificParams> groupConvLayerCPUTestParamsSet;

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <single_layer_tests/interpolate.hpp>
#include <shared_test_classes/single_layer/interpolate.hpp>
#include "test_utils/cpu_test_utils.hpp"
using namespace InferenceEngine;

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <single_layer_tests/logical.hpp>
#include <shared_test_classes/single_layer/logical.hpp>
#include "ngraph_functions/builders.hpp"
#include "test_utils/cpu_test_utils.hpp"

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <single_layer_tests/mvn.hpp>
#include <shared_test_classes/single_layer/mvn.hpp>
#include "ngraph_functions/builders.hpp"
#include "test_utils/cpu_test_utils.hpp"

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <single_layer_tests/normalize_l2.hpp>
#include <shared_test_classes/single_layer/normalize_l2.hpp>
#include "ngraph_functions/builders.hpp"
#include "test_utils/cpu_test_utils.hpp"

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <single_layer_tests/transpose.hpp>
#include <shared_test_classes/single_layer/transpose.hpp>
#include "ngraph_functions/builders.hpp"
#include "test_utils/cpu_test_utils.hpp"

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <single_layer_tests/reduce_ops.hpp>
#include <shared_test_classes/single_layer/reduce_ops.hpp>
#include "ngraph_functions/builders.hpp"
#include "test_utils/cpu_test_utils.hpp"

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <single_layer_tests/region_yolo.hpp>
#include <shared_test_classes/single_layer/region_yolo.hpp>
#include "ngraph_functions/builders.hpp"
#include "test_utils/cpu_test_utils.hpp"

View File

@ -9,13 +9,13 @@
#include <string>
#include "test_utils/cpu_test_utils.hpp"
#include "functional_test_utils/layer_test_utils.hpp"
#include "shared_test_classes/base/layer_test_utils.hpp"
#include "ngraph_functions/utils/ngraph_helpers.hpp"
#include "ngraph_functions/builders.hpp"
using namespace CPUTestUtils;
namespace LayerTestsDefinitions {
namespace SubgraphTestsDefinitions {
enum class nodeType {
convolution,
@ -70,4 +70,4 @@ protected:
std::string pluginTypeNode;
};
} // namespace LayerTestsDefinitions
} // namespace SubgraphTestsDefinitions

View File

@ -9,13 +9,13 @@
#include <string>
#include "test_utils/cpu_test_utils.hpp"
#include "functional_test_utils/layer_test_utils.hpp"
#include "shared_test_classes/base/layer_test_utils.hpp"
#include "ngraph_functions/utils/ngraph_helpers.hpp"
#include "ngraph_functions/builders.hpp"
using namespace CPUTestUtils;
namespace LayerTestsDefinitions {
namespace SubgraphTestsDefinitions {
using FusePermuteAndReorderParams = std::tuple<
InferenceEngine::SizeVector, // Input shape
@ -46,4 +46,4 @@ protected:
void CreateGraph() override;
};
} // namespace LayerTestsDefinitions
} // namespace SubgraphTestsDefinitions

View File

@ -7,7 +7,7 @@
using namespace InferenceEngine;
using namespace CPUTestUtils;
namespace LayerTestsDefinitions {
namespace SubgraphTestsDefinitions {
std::string ConvConcatSubgraphTest::getTestCaseName(testing::TestParamInfo<convConcatCPUParams> obj) {
std::ostringstream result;
@ -422,4 +422,4 @@ INSTANTIATE_TEST_CASE_P(smoke_GroupConvolutionBackpropData3D, ConvConcatSubgraph
} // namespace GroupConvolutionBackpropDataConcat
} // namespace LayerTestsDefinitions
} // namespace SubgraphTestsDefinitions

View File

@ -6,7 +6,7 @@
#include <vector>
#include <memory>
#include <debug.h>
#include <functional_test_utils/layer_test_utils.hpp>
#include <shared_test_classes/base/layer_test_utils.hpp>
#include <ngraph_functions/builders.hpp>
#include <ie_precision.hpp>
#include "common_test_utils/common_utils.hpp"
@ -20,7 +20,7 @@ using InferenceEngine::Precision;
using ngraph::helpers::EltwiseTypes;
using FuncTestUtils::PrecisionUtils::convertIE2nGraphPrc;
namespace CPULayerTestsDefinitions {
namespace CPUSubgraphTestsDefinitions {
typedef std::tuple<
std::vector<std::vector<size_t>>, // Input shapes
@ -181,4 +181,4 @@ INSTANTIATE_TEST_CASE_P(smoke_EltwiseChainWithFQ, EltwiseChainTest,
EltwiseChainTest::getTestCaseName);
} // namespace
} // namespace CPULayerTestsDefinitions
} // namespace CPUSubgraphTestsDefinitions

View File

@ -7,7 +7,7 @@
using namespace InferenceEngine;
using namespace CPUTestUtils;
namespace LayerTestsDefinitions {
namespace SubgraphTestsDefinitions {
std::string FusePermuteAndReorderTest::getTestCaseName(testing::TestParamInfo<FusePermuteAndReorderParams> obj) {
std::ostringstream result;
@ -236,4 +236,4 @@ TEST_P(FusePermuteAndReorderTest2, CompareWithRefs) {
INSTANTIATE_TEST_CASE_P(smoke_Basic, FusePermuteAndReorderTest2, fusePermuteAndReorderCommonParams, FusePermuteAndReorderTest::getTestCaseName);
} // namespace LayerTestsDefinitions
} // namespace SubgraphTestsDefinitions

View File

@ -29,7 +29,7 @@ std::vector<InferenceEngine::Precision> netPrecisions = {
std::map<std::string, std::string> additional_config = { };
namespace LayerTestsDefinitions {
namespace SubgraphTestsDefinitions {
INSTANTIATE_TEST_CASE_P(smoke_basic, ConvReshapeAct,
::testing::Combine(
::testing::ValuesIn(netPrecisions),
@ -39,6 +39,6 @@ namespace LayerTestsDefinitions {
::testing::ValuesIn(output_channels),
::testing::Values(additional_config)),
ConvReshapeAct::getTestCaseName);
} // namespace LayerTestsDefinitions
} // namespace SubgraphTestsDefinitions

View File

@ -7,7 +7,7 @@
#include <string>
#include <ngraph/variant.hpp>
#include "ie_system_conf.h"
#include "functional_test_utils/layer_test_utils.hpp"
#include "shared_test_classes/base/layer_test_utils.hpp"
#include <ngraph/function.hpp>
#include <ngraph/variant.hpp>

View File

@ -12,7 +12,7 @@
#include "common_test_utils/common_utils.hpp"
#include "functional_test_utils/plugin_cache.hpp"
#include "functional_test_utils/layer_test_utils.hpp"
#include "shared_test_classes/base/layer_test_utils.hpp"
#include "functional_test_utils/blob_utils.hpp"
#include "ngraph_functions/utils/ngraph_helpers.hpp"
#include "ngraph_functions/builders.hpp"

View File

@ -9,7 +9,7 @@
#include <ie_core.hpp>
#include "functional_test_utils/layer_test_utils.hpp"
#include "shared_test_classes/base/layer_test_utils.hpp"
#include "functional_test_utils/blob_utils.hpp"
#include "ngraph_functions/utils/ngraph_helpers.hpp"
#include "ngraph_functions/builders.hpp"

View File

@ -12,7 +12,7 @@
#include "common_test_utils/common_utils.hpp"
#include "functional_test_utils/plugin_cache.hpp"
#include "functional_test_utils/layer_test_utils.hpp"
#include "shared_test_classes/base/layer_test_utils.hpp"
#include "functional_test_utils/blob_utils.hpp"
#include "ngraph_functions/utils/ngraph_helpers.hpp"
#include "ngraph_functions/builders.hpp"

View File

@ -4,11 +4,11 @@
#include <string>
#include "functional_test_utils/plugin_config.hpp"
#include "functional_test_utils/core_config.hpp"
#include "functional_test_utils/blob_utils.hpp"
#include <ie_ngraph_utils.hpp>
void PreparePluginConfiguration(LayerTestsUtils::LayerTestsCommon* test) {
void CoreConfiguration(LayerTestsUtils::LayerTestsCommon* test) {
const float MAX_VAL_2B_FEAT = 16384.0f;
auto inputParameters = test->GetFunction()->get_parameters();
auto& configuration = test->GetConfiguration();

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/activation_concats_eltwise.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
std::vector<size_t> input_sizes = {
7,

View File

@ -7,7 +7,7 @@
#include "common_test_utils/test_constants.hpp"
#include "subgraph_tests/basic_lstm.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
const std::vector<InferenceEngine::Precision> netPrecisions = {

View File

@ -6,7 +6,7 @@
#include <ie_precision.hpp>
#include <subgraph_tests/broadcast_power.hpp>
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
const std::vector<InferenceEngine::Precision> netPrecisions = {

View File

@ -5,7 +5,7 @@
#include <subgraph_tests/cascade_concat.hpp>
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
std::vector<std::vector<std::vector<size_t>>> shape1{

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/concat_multi_input.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/concat_quantization.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
const std::vector<InferenceEngine::Precision> netPrecisions = {
InferenceEngine::Precision::FP32,
InferenceEngine::Precision::FP16,

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/constant_result.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
INSTANTIATE_TEST_CASE_P(smoke_Check, ConstantResultSubgraphTest,

View File

@ -5,7 +5,7 @@
#include "common_test_utils/test_constants.hpp"
#include "gna/gna_config.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
std::vector<InferenceEngine::Precision> netPrecisions = {InferenceEngine::Precision::FP32,

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/first_connect_input_concat.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/handling_orientation_conv.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
const std::vector<InferenceEngine::Precision> netPrecisions = {
InferenceEngine::Precision::FP32,
InferenceEngine::Precision::FP16,

View File

@ -7,7 +7,7 @@
#include "common_test_utils/test_constants.hpp"
#include "subgraph_tests/input_conv.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
const std::vector<InferenceEngine::Precision> netPrecisions = {

View File

@ -7,7 +7,7 @@
#include "common_test_utils/test_constants.hpp"
#include "subgraph_tests/matmul_squeeze_add.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
const std::vector<InferenceEngine::Precision> netPrecisions = {

View File

@ -4,7 +4,7 @@
#include "subgraph_tests/multioutput_eltwise_squeeze_eltwise.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
std::vector<std::vector<std::vector<size_t>>> inputs{

View File

@ -5,7 +5,7 @@
#include "common_test_utils/test_constants.hpp"
#include "gna/gna_config.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
std::vector<InferenceEngine::Precision> netPrecisions = { InferenceEngine::Precision::FP32,

View File

@ -32,7 +32,7 @@ std::map<std::string, std::string> additional_config = {
{"GNA_SCALE_FACTOR_0", "2340"}
};
namespace LayerTestsDefinitions {
namespace SubgraphTestsDefinitions {
INSTANTIATE_TEST_CASE_P(smoke_basic, ConvReshapeAct,
::testing::Combine(
::testing::ValuesIn(netPrecisions),
@ -42,6 +42,6 @@ namespace LayerTestsDefinitions {
::testing::ValuesIn(output_channels),
::testing::Values(additional_config)),
ConvReshapeAct::getTestCaseName);
} // namespace LayerTestsDefinitions
} // namespace SubgraphTestsDefinitions

View File

@ -4,7 +4,7 @@
#include "subgraph_tests/reshape_squeeze_reshape_relu.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
std::vector<ShapeAxesTuple> inputs{

View File

@ -4,7 +4,7 @@
#include "subgraph_tests/reshape_permute_reshape.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
std::vector<std::vector<std::vector<size_t>>> inputs{

View File

@ -6,7 +6,7 @@
#include "subgraph_tests/scaleshift.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {

View File

@ -7,7 +7,7 @@
#include "common_test_utils/test_constants.hpp"
#include "subgraph_tests/softsign.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
const std::vector<InferenceEngine::Precision> netPrecisions = {

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/split_conv_concat.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
const std::vector<InferenceEngine::Precision> netPrecisions = {
InferenceEngine::Precision::FP32,
InferenceEngine::Precision::FP16

View File

@ -5,7 +5,7 @@
#include "common_test_utils/test_constants.hpp"
#include "gna/gna_config.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
std::vector<std::vector<std::vector<size_t>>> inputs{

View File

@ -5,7 +5,7 @@
#include "common_test_utils/test_constants.hpp"
#include "gna/gna_config.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
std::vector<InferenceEngine::Precision> netPrecisions = { InferenceEngine::Precision::FP32,

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/trivial_concat.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
std::vector<std::vector<size_t>> inShapes = {

View File

@ -8,7 +8,7 @@
#include "subgraph_tests/two_fake_quantize_to_fullyconnected.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {

View File

@ -3,7 +3,7 @@
//
#include "multi-device/multi_device_config.hpp"
#include <functional_test_utils/behavior_test_utils.hpp>
#include <base/behavior_test_utils.hpp>
#include "behavior/set_preprocess.hpp"
using namespace BehaviorTestsDefinitions;

View File

@ -0,0 +1,8 @@
// Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "functional_test_utils/core_config.hpp"
void CoreConfiguration(LayerTestsUtils::LayerTestsCommon* test) {
}

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include "functional_test_utils/low_precision_transformations/layer_transformation.hpp"
#include "shared_test_classes/base/low_precision_transformations/layer_transformation.hpp"
#include <memory>
#include <tuple>
@ -34,15 +34,15 @@
#include <legacy/ie_util_internal.hpp>
#include "functional_test_utils/plugin_cache.hpp"
#include "functional_test_utils/layer_test_utils.hpp"
#include "shared_test_classes/base/layer_test_utils.hpp"
#include "functional_test_utils/blob_utils.hpp"
#include "functional_test_utils/layer_test_utils.hpp"
#include "functional_test_utils/low_precision_transformations/layer_transformation.hpp"
#include "shared_test_classes/base/layer_test_utils.hpp"
#include "shared_test_classes/base/low_precision_transformations/layer_transformation.hpp"
using namespace InferenceEngine::details;
#include "common_test_utils/common_utils.hpp"
#include "functional_test_utils/plugin_cache.hpp"
#include "functional_test_utils/layer_test_utils.hpp"
#include "shared_test_classes/base/layer_test_utils.hpp"
#include "functional_test_utils/blob_utils.hpp"
namespace LayerTestsUtils {

View File

@ -1,8 +0,0 @@
// Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "functional_test_utils/plugin_config.hpp"
void PreparePluginConfiguration(LayerTestsUtils::LayerTestsCommon* test) {
}

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/constant_result.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
INSTANTIATE_TEST_CASE_P(smoke_Check, ConstantResultSubgraphTest,

View File

@ -7,7 +7,7 @@
#include "common_test_utils/test_constants.hpp"
#include "subgraph_tests/matmul_squeeze_add.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
const std::vector<InferenceEngine::Precision> netPrecisions = {

View File

@ -6,7 +6,7 @@
#include "subgraph_tests/multiply_add.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {

View File

@ -29,7 +29,7 @@ std::vector<InferenceEngine::Precision> netPrecisions = {
std::map<std::string, std::string> additional_config = {};
namespace LayerTestsDefinitions {
namespace SubgraphTestsDefinitions {
INSTANTIATE_TEST_CASE_P(smoke_basic, ConvReshapeAct,
::testing::Combine(
::testing::ValuesIn(netPrecisions),
@ -39,6 +39,6 @@ namespace LayerTestsDefinitions {
::testing::ValuesIn(output_channels),
::testing::Values(additional_config)),
ConvReshapeAct::getTestCaseName);
} // namespace LayerTestsDefinitions
} // namespace SubgraphTestsDefinitions

View File

@ -4,7 +4,7 @@
#include "subgraph_tests/reshape_squeeze_reshape_relu.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
std::vector<ShapeAxesTuple> inputs_squeeze {

View File

@ -6,7 +6,7 @@
#include "subgraph_tests/scaleshift.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/split_conv_concat.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
const std::vector<InferenceEngine::Precision> netPrecisions = {

View File

@ -15,7 +15,7 @@
#include "vpu/ngraph/operations/dynamic_shape_resolver.hpp"
#include "functional_test_utils/plugin_cache.hpp"
#include "functional_test_utils/layer_test_utils.hpp"
#include "shared_test_classes/base/layer_test_utils.hpp"
namespace {

View File

@ -3,7 +3,7 @@
//
#include "multi-device/multi_device_config.hpp"
#include <functional_test_utils/behavior_test_utils.hpp>
#include <base/behavior_test_utils.hpp>
#include "behavior/set_preprocess.hpp"
using namespace BehaviorTestsDefinitions;

View File

@ -0,0 +1,8 @@
// Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "functional_test_utils/core_config.hpp"
void CoreConfiguration(LayerTestsUtils::LayerTestsCommon* test) {
}

View File

@ -1,8 +0,0 @@
// Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "functional_test_utils/plugin_config.hpp"
void PreparePluginConfiguration(LayerTestsUtils::LayerTestsCommon* test) {
}

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/constant_result.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
INSTANTIATE_TEST_CASE_P(smoke_Check, ConstantResultSubgraphTest,

View File

@ -4,7 +4,7 @@
#include "subgraph_tests/reshape_squeeze_reshape_relu.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {
std::vector<ShapeAxesTuple> inputs = {

View File

@ -7,7 +7,7 @@
#include "subgraph_tests/split_conv_concat.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
using namespace SubgraphTestsDefinitions;
namespace {

View File

@ -6,7 +6,7 @@
#include "vpu/private_plugin_config.hpp"
#include <functional_test_utils/layer_test_utils.hpp>
#include <shared_test_classes/base/layer_test_utils.hpp>
#include <functional_test_utils/blob_utils.hpp>
#include <precision_utils.h>
#include <ngraph/opsets/opset3.hpp>

View File

@ -6,7 +6,7 @@
#include "vpu/private_plugin_config.hpp"
#include <functional_test_utils/layer_test_utils.hpp>
#include <shared_test_classes/base/layer_test_utils.hpp>
#include <functional_test_utils/blob_utils.hpp>
#include <ngraph/opsets/opset3.hpp>

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <functional_test_utils/layer_test_utils.hpp>
#include <shared_test_classes/base/layer_test_utils.hpp>
#include <functional_test_utils/blob_utils.hpp>
#include <ngraph/opsets/opset3.hpp>

View File

@ -6,7 +6,7 @@
#include "vpu/private_plugin_config.hpp"
#include <functional_test_utils/layer_test_utils.hpp>
#include <shared_test_classes/base/layer_test_utils.hpp>
#include <functional_test_utils/blob_utils.hpp>
#include <ngraph_functions/utils/ngraph_helpers.hpp>
#include <precision_utils.h>

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include <functional_test_utils/layer_test_utils.hpp>
#include <shared_test_classes/base/layer_test_utils.hpp>
#include "vpu/private_plugin_config.hpp"
#include <ngraph_functions/builders.hpp>

View File

@ -4,7 +4,7 @@
#include "dsr_tests_common.hpp"
#include <functional_test_utils/layer_test_utils.hpp>
#include <shared_test_classes/base/layer_test_utils.hpp>
#include <ngraph_functions/builders.hpp>
#include <vpu/ngraph/operations/dynamic_shape_resolver.hpp>

View File

@ -4,7 +4,7 @@
#include "dsr_tests_common.hpp"
#include <functional_test_utils/layer_test_utils.hpp>
#include <shared_test_classes/base/layer_test_utils.hpp>
#include <ngraph_functions/builders.hpp>
#include <vpu/ngraph/operations/dynamic_shape_resolver.hpp>

View File

@ -4,7 +4,7 @@
#include "dsr_tests_common.hpp"
#include <functional_test_utils/layer_test_utils.hpp>
#include <shared_test_classes/base/layer_test_utils.hpp>
#include <ngraph_functions/builders.hpp>
#include <vpu/ngraph/operations/dynamic_shape_resolver.hpp>

Some files were not shown because too many files have changed in this diff Show More