Remove WA for vpu repo with CommonTestUtils namespace (#19275)
This commit is contained in:
1 parent
7e724565b5
commit
de65abc6b3
25 files changed
+52
-118
No files matched your search
@@ -211,7 +211,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_Snippets_MHAQuantMatMul0, MHAQuantMatMul0,
|
||||
::testing::Values(false), // The graph doesn't contain Multiply
|
||||
::testing::Values(8), // FQ on input + MHA + Transpose on output + 4 Reshapes + Deq Mul
|
||||
::testing::Values(3), // FQ on input + MHA + Deq Mul
|
||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||
::testing::Values(ov::test::utils::DEVICE_CPU),
|
||||
::testing::Values(CPUTestUtils::cpuEmptyPluginConfig)),
|
||||
MHA::getTestCaseName);
|
||||
|
||||
|
||||
+2
-2
@@ -41,7 +41,7 @@ public:
|
||||
std::tie(supportedInputShapes, isFC, inType, outType, cpuParams) = obj.param;
|
||||
|
||||
std::ostringstream result;
|
||||
result << "IS=" << CommonTestUtils::vec2str(supportedInputShapes) << "_";
|
||||
result << "IS=" << ov::test::utils::vec2str(supportedInputShapes) << "_";
|
||||
result << (isFC ? "FullyConnected" : "MatMul") << "_";
|
||||
result << "InputType=" << inType << "_";
|
||||
result << "OutputType=" << outType << "_";
|
||||
@@ -56,7 +56,7 @@ protected:
|
||||
ElementType inType;
|
||||
ElementType outType;
|
||||
void SetUp() override {
|
||||
targetDevice = CommonTestUtils::DEVICE_CPU;
|
||||
targetDevice = ov::test::utils::DEVICE_CPU;
|
||||
SizeVector inShapes;
|
||||
CPUSpecificParams cpuParams;
|
||||
std::tie(inShapes, isFC, inType, outType, cpuParams) = this->GetParam();
|
||||
|
||||
@@ -592,7 +592,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_MHAQuant_Pattern0, MHAQuantTest,
|
||||
::testing::Values(0),
|
||||
::testing::Values(ExpectedNodes{{"Subgraph", 5}, // FQs on inputs x 3 + MHA + Deq Mul
|
||||
{"Transpose", 1}}), // Transpose between MHA and Deq Mul
|
||||
::testing::Values(CommonTestUtils::DEVICE_CPU)),
|
||||
::testing::Values(ov::test::utils::DEVICE_CPU)),
|
||||
MHAQuantTest::getTestCaseName);
|
||||
|
||||
|
||||
@@ -604,7 +604,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_MHAQuant_Pattern1, MHAQuantTest,
|
||||
::testing::Values(1),
|
||||
::testing::Values(ExpectedNodes{{"Subgraph", 3}, // FQ on input + MHA + Deq Mul
|
||||
{"Transpose", 1}}), // Transpose between MHA and Deq Mul
|
||||
::testing::Values(CommonTestUtils::DEVICE_CPU)),
|
||||
::testing::Values(ov::test::utils::DEVICE_CPU)),
|
||||
MHAQuantTest::getTestCaseName);
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(smoke_MHAQuant_Pattern2, MHAQuantTest,
|
||||
|
||||
+2
-2
@@ -28,8 +28,8 @@ public:
|
||||
StaticShape tmp_exp_shape;
|
||||
std::tie(tmp_input_shapes, tmp_axes, tmp_exp_shape) = obj.param;
|
||||
std::ostringstream result;
|
||||
result << "IS" << CommonTestUtils::vec2str(tmp_input_shapes) << "_";
|
||||
result << "sd" << CommonTestUtils::vec2str(tmp_axes) << "_";
|
||||
result << "IS" << ov::test::utils::vec2str(tmp_input_shapes) << "_";
|
||||
result << "sd" << ov::test::utils::vec2str(tmp_axes) << "_";
|
||||
result << "exp_shape" << tmp_exp_shape;
|
||||
return result.str();
|
||||
}
|
||||
|
||||
+2
-2
@@ -29,8 +29,8 @@ public:
|
||||
StaticShape tmp_exp_shape;
|
||||
std::tie(tmp_input_shapes, tmp_axes, tmp_exp_shape) = obj.param;
|
||||
std::ostringstream result;
|
||||
result << "IS" << CommonTestUtils::vec2str(tmp_input_shapes) << "_";
|
||||
result << "sd" << CommonTestUtils::vec2str(tmp_axes) << "_";
|
||||
result << "IS" << ov::test::utils::vec2str(tmp_input_shapes) << "_";
|
||||
result << "sd" << ov::test::utils::vec2str(tmp_axes) << "_";
|
||||
result << "exp_shape" << tmp_exp_shape;
|
||||
return result.str();
|
||||
}
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ public:
|
||||
StaticShape tmp_exp_shape;
|
||||
std::tie(tmp_input_shapes, tmp_depth, tmp_on, tmp_off, tmp_exp_shape) = obj.param;
|
||||
std::ostringstream result;
|
||||
result << "IS" << CommonTestUtils::vec2str(tmp_input_shapes) << "_";
|
||||
result << "IS" << ov::test::utils::vec2str(tmp_input_shapes) << "_";
|
||||
result << "depth" << tmp_depth << "_";
|
||||
result << "on" << tmp_on << "_";
|
||||
result << "off" << tmp_off << "_";
|
||||
|
||||
+7
-7
@@ -35,17 +35,17 @@ public:
|
||||
StaticShape tmp_exp_shape;
|
||||
std::tie(tmp_input_shapes, tmp_attrs, tmp_data, tmp_exp_shape) = obj.param;
|
||||
std::ostringstream result;
|
||||
result << "IS" << CommonTestUtils::vec2str(tmp_input_shapes) << "_";
|
||||
result << "min_size" << CommonTestUtils::vec2str(tmp_attrs.min_size) << "_";
|
||||
result << "max_size" << CommonTestUtils::vec2str(tmp_attrs.max_size) << "_";
|
||||
result << "density" << CommonTestUtils::vec2str(tmp_attrs.density) << "_";
|
||||
result << "fixed_ratio" << CommonTestUtils::vec2str(tmp_attrs.fixed_ratio) << "_";
|
||||
result << "fixed_size" << CommonTestUtils::vec2str(tmp_attrs.fixed_size) << "_";
|
||||
result << "IS" << ov::test::utils::vec2str(tmp_input_shapes) << "_";
|
||||
result << "min_size" << ov::test::utils::vec2str(tmp_attrs.min_size) << "_";
|
||||
result << "max_size" << ov::test::utils::vec2str(tmp_attrs.max_size) << "_";
|
||||
result << "density" << ov::test::utils::vec2str(tmp_attrs.density) << "_";
|
||||
result << "fixed_ratio" << ov::test::utils::vec2str(tmp_attrs.fixed_ratio) << "_";
|
||||
result << "fixed_size" << ov::test::utils::vec2str(tmp_attrs.fixed_size) << "_";
|
||||
result << "clip(" << unit_test::boolToString(tmp_attrs.clip) << ")_";
|
||||
result << "flip(" << unit_test::boolToString(tmp_attrs.flip) << ")_";
|
||||
result << "step(" << tmp_attrs.step << ")_";
|
||||
result << "offset(" << tmp_attrs.offset << ")_";
|
||||
result << "variance" << CommonTestUtils::vec2str(tmp_attrs.variance) << "_";
|
||||
result << "variance" << ov::test::utils::vec2str(tmp_attrs.variance) << "_";
|
||||
result << "scale_all_sizes(" << unit_test::boolToString(tmp_attrs.scale_all_sizes) << ")_";
|
||||
result << "exp_shape(" << tmp_exp_shape << ")";
|
||||
return result.str();
|
||||
|
||||
+4
-4
@@ -35,14 +35,14 @@ public:
|
||||
std::tie(tmp_input_shapes, tmp_attrs, tmp_data, tmp_exp_shape) = obj.param;
|
||||
std::ostringstream result;
|
||||
|
||||
result << "IS" << CommonTestUtils::vec2str(tmp_input_shapes) << "_";
|
||||
result << "widths" << CommonTestUtils::vec2str(tmp_attrs.widths) << "_";
|
||||
result << "heights" << CommonTestUtils::vec2str(tmp_attrs.heights) << "_";
|
||||
result << "IS" << ov::test::utils::vec2str(tmp_input_shapes) << "_";
|
||||
result << "widths" << ov::test::utils::vec2str(tmp_attrs.widths) << "_";
|
||||
result << "heights" << ov::test::utils::vec2str(tmp_attrs.heights) << "_";
|
||||
result << "clip(" << unit_test::boolToString(tmp_attrs.clip) << ")_";
|
||||
result << "step_widths(" << tmp_attrs.step_widths<< ")_";
|
||||
result << "step_heights(" << tmp_attrs.step_heights << ")_";
|
||||
result << "offset(" << tmp_attrs.offset << ")_";
|
||||
result << "variances" << CommonTestUtils::vec2str(tmp_attrs.variances) << "_";
|
||||
result << "variances" << ov::test::utils::vec2str(tmp_attrs.variances) << "_";
|
||||
result << "exp_shape(" << tmp_exp_shape << ")";
|
||||
return result.str();
|
||||
}
|
||||
|
||||
+2
-2
@@ -33,8 +33,8 @@ public:
|
||||
bool tmp_specialZero;
|
||||
std::tie(tmp_input_shapes, tmp_axes, tmp_exp_shape, tmp_specialZero) = obj.param;
|
||||
std::ostringstream result;
|
||||
result << "IS" << CommonTestUtils::vec2str(tmp_input_shapes) << "_";
|
||||
result << "axes" << CommonTestUtils::vec2str(tmp_axes) << "_";
|
||||
result << "IS" << ov::test::utils::vec2str(tmp_input_shapes) << "_";
|
||||
result << "axes" << ov::test::utils::vec2str(tmp_axes) << "_";
|
||||
result << "exp_shape(" << tmp_exp_shape << ")_";
|
||||
result << "specalZero(" << unit_test::boolToString(tmp_specialZero) << ")";
|
||||
return result.str();
|
||||
|
||||
+2
-2
@@ -29,8 +29,8 @@ public:
|
||||
StaticShape tmp_exp_shape;
|
||||
std::tie(tmp_input_shapes, tmp_axes, tmp_exp_shape) = obj.param;
|
||||
std::ostringstream result;
|
||||
result << "IS" << CommonTestUtils::vec2str(tmp_input_shapes) << "_";
|
||||
result << "axes" << CommonTestUtils::vec2str(tmp_axes) << "_";
|
||||
result << "IS" << ov::test::utils::vec2str(tmp_input_shapes) << "_";
|
||||
result << "axes" << ov::test::utils::vec2str(tmp_axes) << "_";
|
||||
result << "exp_shape(" << tmp_exp_shape << ")";
|
||||
return result.str();
|
||||
}
|
||||
|
||||
+6
-6
@@ -38,12 +38,12 @@ public:
|
||||
StaticShape tmp_exp_shape;
|
||||
std::tie(tmp_input_shapes, tmp_data, tmp_begin_mask, tmp_end_mask, tmp_exp_shape) = obj.param;
|
||||
std::ostringstream result;
|
||||
result << "IS" << CommonTestUtils::vec2str(tmp_input_shapes) << "_";
|
||||
result << "begin" << CommonTestUtils::vec2str(tmp_data[BEGIN]) << "_";
|
||||
result << "end" << CommonTestUtils::vec2str(tmp_data[END]) << "_";
|
||||
result << "stride" << CommonTestUtils::vec2str(tmp_data[STRIDE]) << "_";
|
||||
result << "begin_mask" << CommonTestUtils::vec2str(tmp_begin_mask) << "_";
|
||||
result << "end_mask" << CommonTestUtils::vec2str(tmp_end_mask) << "_";
|
||||
result << "IS" << ov::test::utils::vec2str(tmp_input_shapes) << "_";
|
||||
result << "begin" << ov::test::utils::vec2str(tmp_data[BEGIN]) << "_";
|
||||
result << "end" << ov::test::utils::vec2str(tmp_data[END]) << "_";
|
||||
result << "stride" << ov::test::utils::vec2str(tmp_data[STRIDE]) << "_";
|
||||
result << "begin_mask" << ov::test::utils::vec2str(tmp_begin_mask) << "_";
|
||||
result << "end_mask" << ov::test::utils::vec2str(tmp_end_mask) << "_";
|
||||
result << "exp_shape(" << tmp_exp_shape << ")";
|
||||
return result.str();
|
||||
}
|
||||
|
||||
+2
-2
@@ -28,8 +28,8 @@ public:
|
||||
StaticShape tmp_exp_shape;
|
||||
std::tie(tmp_input_shapes, tmp_transpose_order, tmp_exp_shape) = obj.param;
|
||||
std::ostringstream result;
|
||||
result << "input_shapes(" << CommonTestUtils::vec2str(tmp_input_shapes) << ")_";
|
||||
result << "order(" << CommonTestUtils::vec2str(tmp_transpose_order) << ")_";
|
||||
result << "input_shapes(" << ov::test::utils::vec2str(tmp_input_shapes) << ")_";
|
||||
result << "order(" << ov::test::utils::vec2str(tmp_transpose_order) << ")_";
|
||||
result << "exp_shape(" << tmp_exp_shape << ")";
|
||||
return result.str();
|
||||
}
|
||||
|
||||
+2
-2
@@ -28,8 +28,8 @@ public:
|
||||
StaticShape tmp_exp_shape;
|
||||
std::tie(tmp_input_shapes, tmp_axes, tmp_exp_shape) = obj.param;
|
||||
std::ostringstream result;
|
||||
result << "IS" << CommonTestUtils::vec2str(tmp_input_shapes) << "_";
|
||||
result << "axes" << CommonTestUtils::vec2str(tmp_axes) << "_";
|
||||
result << "IS" << ov::test::utils::vec2str(tmp_input_shapes) << "_";
|
||||
result << "axes" << ov::test::utils::vec2str(tmp_axes) << "_";
|
||||
result << "exp_shape(" << tmp_exp_shape << ")";
|
||||
return result.str();
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@ using ConcatRestrictionsParamsTuple = typename std::tuple<InferenceEngine::SizeV
|
||||
|
||||
namespace ConcatTestsDefinitions {
|
||||
|
||||
using namespace CommonTestUtils;
|
||||
using namespace InferenceEngine;
|
||||
using namespace ngraph::builder;
|
||||
using namespace ov;
|
||||
|
||||
@@ -70,7 +70,7 @@ public:
|
||||
}
|
||||
|
||||
std::ostringstream result;
|
||||
result << "Shape=" << CommonTestUtils::vec2str(input_shape) << "_";
|
||||
result << "Shape=" << ov::test::utils::vec2str(input_shape) << "_";
|
||||
result << "netPRC=" << net_type << "_";
|
||||
result << "trgDev=" << target_device;
|
||||
for (auto const& conf_i : conf) {
|
||||
@@ -186,7 +186,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_merge_transpose_gather,
|
||||
TransposeGatherTest,
|
||||
::testing::Combine(::testing::ValuesIn(input_shapes),
|
||||
::testing::ValuesIn(input_precisions),
|
||||
::testing::Values(CommonTestUtils::DEVICE_GNA),
|
||||
::testing::Values(ov::test::utils::DEVICE_GNA),
|
||||
::testing::ValuesIn(configs),
|
||||
::testing::ValuesIn(target_configs)),
|
||||
TransposeGatherTest::get_test_case_name);
|
||||
@@ -195,7 +195,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_merge_transpose_gather,
|
||||
GatherTransposeTest,
|
||||
::testing::Combine(::testing::ValuesIn(input_shapes),
|
||||
::testing::ValuesIn(input_precisions),
|
||||
::testing::Values(CommonTestUtils::DEVICE_GNA),
|
||||
::testing::Values(ov::test::utils::DEVICE_GNA),
|
||||
::testing::ValuesIn(configs),
|
||||
::testing::ValuesIn(target_configs)),
|
||||
GatherTransposeTest::get_test_case_name);
|
||||
|
||||
@@ -53,7 +53,7 @@ typedef std::tuple<ov::element::Type, // Net precision
|
||||
>
|
||||
GatherTransposeMergeTestParams;
|
||||
|
||||
class GatherTransposeMergeBase : public CommonTestUtils::TestsCommon,
|
||||
class GatherTransposeMergeBase : public ov::test::TestsCommon,
|
||||
public ::testing::WithParamInterface<GatherTransposeMergeTestParams> {
|
||||
public:
|
||||
static std::string get_test_name(const testing::TestParamInfo<GatherTransposeMergeTestParams>& obj) {
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
|
||||
std::ostringstream result;
|
||||
result << "netPRC=" << net_type << "_";
|
||||
result << "Shape=" << CommonTestUtils::vec2str(input_shape);
|
||||
result << "Shape=" << ov::test::utils::vec2str(input_shape);
|
||||
|
||||
return result.str();
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ struct TestData {
|
||||
typedef std::tuple<TestData> // Transpose order
|
||||
test_params;
|
||||
|
||||
class TransposeCompressTest : public CommonTestUtils::TestsCommon, public ::testing::WithParamInterface<test_params> {
|
||||
class TransposeCompressTest : public ov::test::TestsCommon, public ::testing::WithParamInterface<test_params> {
|
||||
public:
|
||||
static std::string getTestCaseName(const testing::TestParamInfo<test_params>& obj) {
|
||||
TestData test_shapes;
|
||||
|
||||
+5
-5
@@ -304,7 +304,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_Interpolate_11_Basic, Interpolate11LayerTest, ::t
|
||||
::testing::Values(InferenceEngine::Layout::ANY),
|
||||
::testing::ValuesIn(inShapes),
|
||||
::testing::ValuesIn(targetShapes),
|
||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||
::testing::Values(ov::test::utils::DEVICE_GPU),
|
||||
::testing::Values(additional_config)),
|
||||
Interpolate11LayerTest::getTestCaseName);
|
||||
|
||||
@@ -337,7 +337,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_Interpolate_11_Pillow, Interpolate11LayerTest, ::
|
||||
::testing::Values(InferenceEngine::Layout::ANY),
|
||||
::testing::Values(std::vector<size_t>{1, 1, 23, 23}),
|
||||
::testing::Values(std::vector<size_t>{1, 1, 50, 50}),
|
||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||
::testing::Values(ov::test::utils::DEVICE_GPU),
|
||||
::testing::Values(additional_config)),
|
||||
Interpolate11LayerTest::getTestCaseName);
|
||||
|
||||
@@ -361,7 +361,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_Interpolate_11_Pillow_Horizontal, Interpolate11La
|
||||
::testing::Values(InferenceEngine::Layout::ANY),
|
||||
::testing::Values(std::vector<size_t>{1, 1, 23, 23}),
|
||||
::testing::Values(std::vector<size_t>{1, 1, 25, 50}),
|
||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||
::testing::Values(ov::test::utils::DEVICE_GPU),
|
||||
::testing::Values(additional_config)),
|
||||
Interpolate11LayerTest::getTestCaseName);
|
||||
|
||||
@@ -385,7 +385,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_Interpolate_11_Pillow_Vertical, Interpolate11Laye
|
||||
::testing::Values(InferenceEngine::Layout::ANY),
|
||||
::testing::Values(std::vector<size_t>{1, 1, 23, 23}),
|
||||
::testing::Values(std::vector<size_t>{1, 1, 50, 25}),
|
||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||
::testing::Values(ov::test::utils::DEVICE_GPU),
|
||||
::testing::Values(additional_config)),
|
||||
Interpolate11LayerTest::getTestCaseName);
|
||||
|
||||
@@ -409,7 +409,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_Interpolate_11_Pillow_Vertical_BF, Interpolate11L
|
||||
::testing::Values(InferenceEngine::Layout::ANY),
|
||||
::testing::Values(std::vector<size_t>{23, 23, 2, 2}),
|
||||
::testing::Values(std::vector<size_t>{52, 26, 2, 2}),
|
||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||
::testing::Values(ov::test::utils::DEVICE_GPU),
|
||||
::testing::Values(additional_config)),
|
||||
Interpolate11LayerTest::getTestCaseName);
|
||||
} // namespace
|
||||
@@ -190,18 +190,18 @@ std::string InterpolateLayerTest::getTestCaseName(const testing::TestParamInfo<I
|
||||
double cubeCoef;
|
||||
std::tie(mode, shapeCalcMode, coordinateTransformMode, nearestMode, antialias, padBegin, padEnd, cubeCoef, axes, scales) = interpolateParams;
|
||||
std::ostringstream result;
|
||||
result << "IS=" << CommonTestUtils::vec2str(inputShapes) << "_";
|
||||
result << "TS=" << CommonTestUtils::vec2str(targetShapes) << "_";
|
||||
result << "IS=" << ov::test::utils::vec2str(inputShapes) << "_";
|
||||
result << "TS=" << ov::test::utils::vec2str(targetShapes) << "_";
|
||||
result << "InterpolateMode=" << mode << "_";
|
||||
result << "ShapeCalcMode=" << shapeCalcMode << "_";
|
||||
result << "CoordinateTransformMode=" << coordinateTransformMode << "_";
|
||||
result << "NearestMode=" << nearestMode << "_";
|
||||
result << "CubeCoef=" << cubeCoef << "_";
|
||||
result << "Antialias=" << antialias << "_";
|
||||
result << "PB=" << CommonTestUtils::vec2str(padBegin) << "_";
|
||||
result << "PE=" << CommonTestUtils::vec2str(padEnd) << "_";
|
||||
result << "Axes=" << CommonTestUtils::vec2str(axes) << "_";
|
||||
result << "Scales=" << CommonTestUtils::vec2str(scales) << "_";
|
||||
result << "PB=" << ov::test::utils::vec2str(padBegin) << "_";
|
||||
result << "PE=" << ov::test::utils::vec2str(padEnd) << "_";
|
||||
result << "Axes=" << ov::test::utils::vec2str(axes) << "_";
|
||||
result << "Scales=" << ov::test::utils::vec2str(scales) << "_";
|
||||
result << "netPRC=" << netPrecision.name() << "_";
|
||||
result << "inPRC=" << inPrc.name() << "_";
|
||||
result << "outPRC=" << outPrc.name() << "_";
|
||||
|
||||
@@ -195,12 +195,3 @@ size_t getVmRSSInKB();
|
||||
} // namespace utils
|
||||
} // namespace test
|
||||
} // namespace ov
|
||||
|
||||
// openvino_contrib and NPU repo use CommonTestUtils::
|
||||
// so we need to add these names to CommonTestUtils namespace
|
||||
namespace CommonTestUtils {
|
||||
using ov::test::utils::vec2str;
|
||||
using ov::test::utils::combineParams;
|
||||
using ov::test::utils::OpType;
|
||||
using ov::test::utils::GetTimestamp;
|
||||
} // namespace CommonTestUtils
|
||||
@@ -481,11 +481,3 @@ OPENVINO_SUPPRESS_DEPRECATED_END
|
||||
} // namespace test
|
||||
} // namespace ov
|
||||
|
||||
|
||||
// openvino_contrib and NPU repo use CommonTestUtils::
|
||||
// so we need to add these names to CommonTestUtils namespace
|
||||
namespace CommonTestUtils {
|
||||
using ov::test::utils::ie_abs;
|
||||
using ov::test::utils::generate_float_numbers;
|
||||
using ov::test::utils::fill_data_roi;
|
||||
} // namespace CommonTestUtils
|
||||
@@ -363,13 +363,3 @@ private:
|
||||
} // namespace utils
|
||||
} // namespace test
|
||||
} // namespace ov
|
||||
|
||||
|
||||
// NPU repo uses CommonTestUtils::
|
||||
// so we need to add these names to CommonTestUtils namespace
|
||||
namespace CommonTestUtils {
|
||||
using ov::test::utils::fileExists;
|
||||
using ov::test::utils::removeFilesWithExt;
|
||||
using ov::test::utils::removeFile;
|
||||
using ov::test::utils::removeDir;
|
||||
} // namespace CommonTestUtils
|
||||
@@ -10,19 +10,6 @@
|
||||
#include "gtest/gtest.h"
|
||||
#include "openvino/core/model.hpp"
|
||||
|
||||
namespace ov {
|
||||
namespace test {
|
||||
class TestsCommon;
|
||||
} // namespace test
|
||||
} // namespace ov
|
||||
|
||||
// Temporal WA for applications.ai.vpu-accelerators.vpux-plugin repo
|
||||
// It requires to have TestCommon name in CommonTestUtils namespace
|
||||
// Need to change namespace in NPU repo and then remove this WA
|
||||
namespace CommonTestUtils {
|
||||
using ov::test::TestsCommon;
|
||||
} // namespace CommonTestUtils
|
||||
|
||||
namespace ov {
|
||||
namespace test {
|
||||
namespace utils {
|
||||
|
||||
@@ -49,20 +49,3 @@ const unsigned int maxFileNameLength = 140;
|
||||
} // namespace utils
|
||||
} // namespace test
|
||||
} // namespace ov
|
||||
|
||||
// openvino_contrib and NPU repo use CommonTestUtils::
|
||||
// so we need to add these names to CommonTestUtils namespace
|
||||
namespace CommonTestUtils {
|
||||
using ov::test::utils::DEVICE_AUTO;
|
||||
using ov::test::utils::DEVICE_CPU;
|
||||
using ov::test::utils::DEVICE_GNA;
|
||||
using ov::test::utils::DEVICE_GPU;
|
||||
using ov::test::utils::DEVICE_BATCH;
|
||||
using ov::test::utils::DEVICE_KEEMBAY;
|
||||
using ov::test::utils::DEVICE_MULTI;
|
||||
using ov::test::utils::DEVICE_TEMPLATE;
|
||||
using ov::test::utils::DEVICE_HETERO;
|
||||
|
||||
using ov::test::utils::maxFileNameLength;
|
||||
using ov::test::utils::DEVICE_SUFFIX_SEPARATOR;
|
||||
} // namespace CommonTestUtils
|
||||
-8
@@ -35,11 +35,3 @@ public:
|
||||
} // namespace utils
|
||||
} // namespace test
|
||||
} // namespace ov
|
||||
|
||||
// openvino_contrib and NPU repo use CommonTestUtils::
|
||||
// so we need to add these names to CommonTestUtils namespace
|
||||
namespace CommonTestUtils {
|
||||
using ov::test::utils::env;
|
||||
using ov::test::utils::JMP_STATUS;
|
||||
using ov::test::utils::CrashHandler;
|
||||
} // namespace CommonTestUtils
|
||||
Reference in new issue
Block a user