Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LP Transformation tests use API 2.0 #21677

Merged
merged 38 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
bcc4d5c
use ov::test::SubgraphBaseTest base for LayerTransformation
evkotov Dec 11, 2023
31cbfa8
fix Run -> run
evkotov Dec 11, 2023
93e4d3e
fix LayerTestsCommon::getRuntimeInfo()
evkotov Dec 11, 2023
5d632dc
continue fixes
evkotov Dec 12, 2023
376eb34
add init_input_shapes; remove GenerateInput
evkotov Dec 14, 2023
b0edf3e
change generate FakeQuantize function, but it doesnt work
evkotov Dec 15, 2023
f9666a7
added thresholds
evkotov Dec 18, 2023
7bb472f
fix thresholds gpu func tests
evkotov Dec 18, 2023
c9f4b47
fix cast_vector cpu_func_tests
evkotov Dec 19, 2023
404d62f
generate_inputs for non-scalar; fix thresholds
evkotov Dec 19, 2023
820c8b3
fix thresholds
evkotov Dec 20, 2023
2fbf7c6
cleanup
evkotov Dec 20, 2023
ec4f7ac
cleanup
evkotov Dec 20, 2023
d641dda
fix problem with skipped tests and error no model compiled
evkotov Jan 8, 2024
79e0497
cleanup
evkotov Jan 8, 2024
7636bcf
code review fixes: remove InferenceEngine::
evkotov Jan 8, 2024
473674e
cleanup InferenceEngine
evkotov Jan 8, 2024
95cf4ea
use ov instead ov ngraph
evkotov Jan 8, 2024
2da5c9e
code review: use OPENVINO_ASSERT instead of IE_ASSERT
evkotov Jan 8, 2024
5879c86
fix gpu func tests InferenceEngine
evkotov Jan 8, 2024
84d8760
getTestCaseNameByParams -> get_test_case_name_by_params; some ngraph …
evkotov Jan 9, 2024
c22afbd
code review: cleanups
evkotov Jan 9, 2024
849c10e
code review: fix headers
evkotov Jan 9, 2024
3eca1f7
fix ngraph -> ov
evkotov Jan 9, 2024
8738749
rename camel style to snake
evkotov Jan 9, 2024
4af671d
remove/fix ngraph includes
evkotov Jan 10, 2024
a589658
use static_partial_shapes_to_test_representation
evkotov Jan 10, 2024
af2cf3f
move generate_inputs.cpp aux functions to anon namespace
evkotov Jan 10, 2024
11d9b90
code review fix
evkotov Jan 11, 2024
ab541a2
ci fixes
evkotov Jan 11, 2024
a483cce
code review: refactor get_runtime_precision methods
evkotov Jan 11, 2024
bf9967a
refactor get_fq_scalar_range
evkotov Jan 11, 2024
2822678
fixes after rebase
evkotov Jan 17, 2024
7a15cb8
add windows failures to skip list
evkotov Jan 17, 2024
58685db
Merge branch 'master' into cvs_111374_dev
itikhono Jan 18, 2024
47313f6
Apply suggestions from code review
itikhono Jan 18, 2024
a7a2337
Update src/plugins/intel_gpu/tests/functional/shared_tests_instances/…
itikhono Jan 18, 2024
11166b7
Update src/plugins/intel_gpu/tests/functional/shared_tests_instances/…
itikhono Jan 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
#include "common_test_utils/test_constants.hpp"

using namespace LayerTestsDefinitions;
using namespace InferenceEngine::details;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32,
//ngraph::element::f16
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<LayerTestsDefinitions::AddTestValues> params = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
using namespace LayerTestsDefinitions;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32,
// ngraph::element::f16
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<size_t> opsetVersions = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
using namespace LayerTestsDefinitions;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32,
// ngraph::element::f16
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<BatchToSpaceTransformationParam> params = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
using namespace LayerTestsDefinitions;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32,
// ngraph::element::f16
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<ov::pass::low_precision::LayerTransformation::Params> trasformationParamValues = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
#include "common_test_utils/test_constants.hpp"

using namespace LayerTestsDefinitions;
using namespace InferenceEngine::details;

namespace {
const std::vector<ngraph::element::Type> precisions = {
ngraph::element::f32,
// ngraph::element::f16
const std::vector<ov::element::Type> precisions = {
ov::element::f32
};

const std::vector<ConcatTransformationTestValues> testValues = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
using namespace LayerTestsDefinitions;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32,
// ngraph::element::f16
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<ov::pass::low_precision::LayerTransformation::Params> trasformationParamValues = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
using namespace LayerTestsDefinitions;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32,
// ngraph::element::f16
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<ov::pass::low_precision::LayerTransformation::Params> trasformationParamValues = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
#include "common_test_utils/test_constants.hpp"

using namespace LayerTestsDefinitions;
using namespace InferenceEngine::details;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32,
// ngraph::element::f16
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<ov::pass::low_precision::LayerTransformation::Params> trasformationParamValues = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
#include "common_test_utils/test_constants.hpp"

using namespace LayerTestsDefinitions;
using namespace InferenceEngine::details;

namespace {
const std::vector<ngraph::element::Type> precisions = {
ngraph::element::f32,
// ngraph::element::f16
const std::vector<ov::element::Type> precisions = {
ov::element::f32
};

const std::vector<ov::pass::low_precision::LayerTransformation::Params> trasformationParamValues = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
using namespace LayerTestsDefinitions;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32,
// ngraph::element::f16
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<ov::pass::low_precision::LayerTransformation::Params> trasformationParamValues = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
using namespace LayerTestsDefinitions;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<ov::pass::low_precision::LayerTransformation::Params> trasformationParamValues = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
using namespace LayerTestsDefinitions;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32,
// ngraph::element::f16
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<ov::pass::low_precision::LayerTransformation::Params> trasformationParamValues = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
using namespace LayerTestsDefinitions;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32,
// ngraph::element::f16,
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<ov::pass::low_precision::LayerTransformation::Params> trasformationParamValues = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,18 @@
#include "common_test_utils/test_constants.hpp"

using namespace LayerTestsDefinitions;
using namespace InferenceEngine::details;

namespace {
const std::vector<ngraph::element::Type> precisions = {
ngraph::element::f32,
// ngraph::element::f16
const std::vector<ov::element::Type> precisions = {
ov::element::f32
};

const std::vector<ov::op::v0::DepthToSpace::DepthToSpaceMode> modes = {
ov::op::v0::DepthToSpace::DepthToSpaceMode::BLOCKS_FIRST,
ov::op::v0::DepthToSpace::DepthToSpaceMode::DEPTH_FIRST
};

const std::vector<ngraph::PartialShape> inputShapesBS2 = {
const std::vector<ov::PartialShape> inputShapesBS2 = {
{1, 4, 3, 3}, {2, 16, 5, 4}
};

Expand All @@ -35,7 +33,7 @@ const auto DepthToSpaceBS2 = ::testing::Combine(

INSTANTIATE_TEST_SUITE_P(LPT_BS2, DepthToSpaceTransformation, DepthToSpaceBS2, DepthToSpaceTransformation::getTestCaseName);

const std::vector<ngraph::PartialShape> inputShapesBS3 = {
const std::vector<ov::PartialShape> inputShapesBS3 = {
{1, 9, 3, 3}, {2, 27, 5, 4}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
#include "common_test_utils/test_constants.hpp"

using namespace LayerTestsDefinitions;
using namespace InferenceEngine::details;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32,
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<std::string> elementwiseTypes = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <gtest/gtest.h>

using namespace LayerTestsDefinitions;
using namespace InferenceEngine::details;

namespace {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
#include "common_test_utils/test_constants.hpp"

using namespace LayerTestsDefinitions;
using namespace InferenceEngine::details;

namespace {
const std::vector<ngraph::element::Type> precisions = {
ngraph::element::f32
const std::vector<ov::element::Type> precisions = {
ov::element::f32
};

const std::vector<ov::pass::low_precision::LayerTransformation::Params> trasformationParamValues = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
#include "common_test_utils/test_constants.hpp"

using namespace LayerTestsDefinitions;
using namespace InferenceEngine::details;

namespace {
const std::vector<ngraph::element::Type> precisions = {
ngraph::element::f32
const std::vector<ov::element::Type> precisions = {
ov::element::f32
};

const std::vector<ov::pass::low_precision::LayerTransformation::Params> trasformationParamValues = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ using namespace LayerTestsDefinitions;
using namespace ov::pass::low_precision;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32,
// ngraph::element::f16
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<ov::pass::low_precision::LayerTransformation::Params> trasformationParamValues = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ using namespace LayerTestsDefinitions;
using namespace ov::pass::low_precision;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32,
// ngraph::element::f16
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<LayerTransformation::Params> trasformationParamValues = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ using namespace LayerTestsDefinitions;
using namespace ov::pass::low_precision;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32,
// ngraph::element::f16
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<LayerTransformation::Params> trasformationParamValues = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ using namespace LayerTestsDefinitions;
using namespace ov::pass::low_precision;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32,
ngraph::element::f16
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32,
ngraph::element::f16
itikhono marked this conversation as resolved.
Show resolved Hide resolved
};

const std::vector<LayerTransformation::Params> trasformationParamValues = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
#include "common_test_utils/test_constants.hpp"

using namespace LayerTestsDefinitions;
using namespace InferenceEngine::details;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32,
// ngraph::element::f16
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<MatMulShapes> shapes = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
#include "low_precision_transformations/fuse_convert_transformation.hpp"

using namespace LayerTestsDefinitions;
using namespace InferenceEngine::details;

namespace {
const std::vector<element::Type> precisions = {
element::f32
const std::vector<ov::element::Type> precisions = {
ov::element::f32
};

const std::vector< ngraph::PartialShape > inputAndQuantizationShapes = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <gtest/gtest.h>

using namespace LayerTestsDefinitions;
using namespace InferenceEngine::details;

namespace {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ using namespace LayerTestsDefinitions;
using namespace ov::pass::low_precision;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<LayerTransformation::Params> trasformationParamValues = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <gtest/gtest.h>

using namespace LayerTestsDefinitions;
using namespace InferenceEngine::details;
using namespace ngraph;
itikhono marked this conversation as resolved.
Show resolved Hide resolved

namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <gtest/gtest.h>

using namespace LayerTestsDefinitions;
using namespace InferenceEngine::details;
using namespace ngraph;
itikhono marked this conversation as resolved.
Show resolved Hide resolved
itikhono marked this conversation as resolved.
Show resolved Hide resolved

namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
using namespace LayerTestsDefinitions;

namespace {
const std::vector<ngraph::element::Type> precisions = {
ngraph::element::f32,
const std::vector<ov::element::Type> precisions = {
ov::element::f32
};

const std::vector<int> opset_version = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ using namespace LayerTestsDefinitions;
using namespace ov::pass::low_precision;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32,
// ngraph::element::f16
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<ngraph::PartialShape> dimensions = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
using namespace LayerTestsDefinitions;

namespace {
const std::vector<ngraph::element::Type> netPrecisions = {
ngraph::element::f32
const std::vector<ov::element::Type> netPrecisions = {
ov::element::f32
};

const std::vector<ov::pass::low_precision::LayerTransformation::Params> trasformationParamValues = {
Expand Down
Loading
Loading