[LPT] Plugin tests: added the ability to add test-cases with dynamic shapes (#6436)
This commit is contained in:
parent
8b456cb9b4
commit
2ff5d1fab1
@ -71,7 +71,7 @@ const std::vector<LayerTestsDefinitions::AddTestValues> params = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, AddTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, AddTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(InferenceEngine::SizeVector({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
AddTransformation::getTestCaseName);
|
AddTransformation::getTestCaseName);
|
||||||
|
@ -79,7 +79,7 @@ const std::vector<LayerTestsDefinitions::ClampTransformationParam> params{
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ClampTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ClampTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
|
@ -44,7 +44,7 @@ const std::vector<ConcatTransformationTestValues> testValues = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<ngraph::Shape> shapes = {
|
const std::vector<ngraph::PartialShape> shapes = {
|
||||||
ngraph::Shape({ 1, 3, 16, 16 }),
|
ngraph::Shape({ 1, 3, 16, 16 }),
|
||||||
ngraph::Shape({ 4, 3, 16, 16 })
|
ngraph::Shape({ 4, 3, 16, 16 })
|
||||||
};
|
};
|
||||||
|
@ -45,7 +45,7 @@ const std::vector<ConcatWithChildAndOutputTransformationParam> testValues = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ConcatWithChildAndOutputTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ConcatWithChildAndOutputTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 6, 10, 10 })),
|
::testing::Values(ngraph::PartialShape({ 1, 6, 10, 10 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(testValues),
|
::testing::ValuesIn(testValues),
|
||||||
::testing::ValuesIn(trasformationParamValues)),
|
::testing::ValuesIn(trasformationParamValues)),
|
||||||
|
@ -48,7 +48,7 @@ const std::vector<bool> multiChannel = { true/*, false*/ };
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ConcatWithDifferentChildrenTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ConcatWithDifferentChildrenTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 6, 10, 10 })),
|
::testing::Values(ngraph::PartialShape({ 1, 6, 10, 10 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(testValues),
|
::testing::ValuesIn(testValues),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
|
@ -26,7 +26,7 @@ const std::vector<ngraph::pass::low_precision::LayerTransformation::Params> tras
|
|||||||
const std::vector<bool> transparentIntermediateValues = { true, false };
|
const std::vector<bool> transparentIntermediateValues = { true, false };
|
||||||
const std::vector<bool> multiChannelValues = { /*true,*/ false };
|
const std::vector<bool> multiChannelValues = { /*true,*/ false };
|
||||||
|
|
||||||
const std::vector<ngraph::Shape> shapes = {
|
const std::vector<ngraph::PartialShape> shapes = {
|
||||||
{ 1, 3, 16, 16 },
|
{ 1, 3, 16, 16 },
|
||||||
{ 4, 3, 16, 16 }
|
{ 4, 3, 16, 16 }
|
||||||
};
|
};
|
||||||
|
@ -23,7 +23,7 @@ const std::vector<ngraph::pass::low_precision::LayerTransformation::Params> tras
|
|||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8()
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8()
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<ngraph::Shape> shapes = {
|
const std::vector<ngraph::PartialShape> shapes = {
|
||||||
{ 1, 3, 16, 16 },
|
{ 1, 3, 16, 16 },
|
||||||
{ 4, 3, 16, 16 }
|
{ 4, 3, 16, 16 }
|
||||||
};
|
};
|
||||||
|
@ -48,7 +48,7 @@ const std::vector<ConcatWithSplitTransformationParam> testValues = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ConcatWithSplitTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ConcatWithSplitTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 6, 10, 10 })),
|
::testing::Values(ngraph::PartialShape({ 1, 6, 10, 10 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(testValues),
|
::testing::ValuesIn(testValues),
|
||||||
::testing::ValuesIn(trasformationParamValues)),
|
::testing::ValuesIn(trasformationParamValues)),
|
||||||
|
@ -100,7 +100,7 @@ const std::vector<LayerTestsDefinitions::ConvolutionBackpropDataTransformationPa
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<std::pair<ngraph::Shape, bool>> inputShapes = {
|
const std::vector<std::pair<ngraph::PartialShape, bool>> inputShapes = {
|
||||||
{{ 1, 8, 16, 16 }, true}
|
{{ 1, 8, 16, 16 }, true}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -233,7 +233,7 @@ const std::vector<LayerTestsDefinitions::ConvolutionQDqTransformationParam> para
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<ngraph::Shape> shapes = {
|
const std::vector<ngraph::PartialShape> shapes = {
|
||||||
{ 1, 3, 4, 4 },
|
{ 1, 3, 4, 4 },
|
||||||
{ 4, 3, 4, 4 }
|
{ 4, 3, 4, 4 }
|
||||||
};
|
};
|
||||||
|
@ -22,7 +22,7 @@ const std::vector<DepthToSpace::DepthToSpaceMode> modes = {
|
|||||||
DepthToSpace::DepthToSpaceMode::DEPTH_FIRST
|
DepthToSpace::DepthToSpaceMode::DEPTH_FIRST
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<ngraph::Shape> inputShapesBS2 = {
|
const std::vector<ngraph::PartialShape> inputShapesBS2 = {
|
||||||
{1, 4, 3, 3}, {2, 16, 5, 4}
|
{1, 4, 3, 3}, {2, 16, 5, 4}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ const auto DepthToSpaceBS2 = ::testing::Combine(
|
|||||||
|
|
||||||
INSTANTIATE_TEST_SUITE_P(LPT_BS2, DepthToSpaceTransformation, DepthToSpaceBS2, DepthToSpaceTransformation::getTestCaseName);
|
INSTANTIATE_TEST_SUITE_P(LPT_BS2, DepthToSpaceTransformation, DepthToSpaceBS2, DepthToSpaceTransformation::getTestCaseName);
|
||||||
|
|
||||||
const std::vector<ngraph::Shape> inputShapesBS3 = {
|
const std::vector<ngraph::PartialShape> inputShapesBS3 = {
|
||||||
{1, 9, 3, 3}, {2, 27, 5, 4}
|
{1, 9, 3, 3}, {2, 27, 5, 4}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ const std::vector<ngraph::builder::subgraph::FakeQuantizeOnData> fakeQuantizes =
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeAndAvgPoolTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeAndAvgPoolTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(precisions),
|
::testing::ValuesIn(precisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 32, 72, 48 })),
|
::testing::Values(ngraph::PartialShape({ 1, 32, 72, 48 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(fakeQuantizes)),
|
::testing::ValuesIn(fakeQuantizes)),
|
||||||
|
@ -29,7 +29,7 @@ const std::vector<ngraph::builder::subgraph::FakeQuantizeOnData> fakeQuantizes =
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeAndMaxPoolTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeAndMaxPoolTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(precisions),
|
::testing::ValuesIn(precisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 32, 72, 48 })),
|
::testing::Values(ngraph::PartialShape({ 1, 32, 72, 48 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(fakeQuantizes)),
|
::testing::ValuesIn(fakeQuantizes)),
|
||||||
|
@ -31,7 +31,7 @@ const std::vector<FakeQuantizeAndTwoOutputBranchesWithConvolution> testValues =
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeAndTwoOutputBranchesWithConvolutionTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeAndTwoOutputBranchesWithConvolutionTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 32, 72, 48 })),
|
::testing::Values(ngraph::PartialShape({ 1, 32, 72, 48 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(testValues)),
|
::testing::ValuesIn(testValues)),
|
||||||
|
@ -59,7 +59,7 @@ const std::vector<FakeQuantizePrecisionSelectionTransformationTestValues> testVa
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizePrecisionSelectionTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizePrecisionSelectionTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 32, 72, 48 })),
|
::testing::Values(ngraph::PartialShape({ 1, 32, 72, 48 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(testValues)),
|
::testing::ValuesIn(testValues)),
|
||||||
|
@ -62,7 +62,7 @@ const std::vector<FakeQuantizeTransformationParam> fakeQuantizeOnDataValues = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 32, 72, 48 })),
|
::testing::Values(ngraph::PartialShape({ 1, 32, 72, 48 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(fakeQuantizeOnDataValues)),
|
::testing::ValuesIn(fakeQuantizeOnDataValues)),
|
||||||
|
@ -104,7 +104,7 @@ const std::vector<FakeQuantizeWithNotOptimalTransformationTestValues> fakeQuanti
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeWithNotOptimalTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeWithNotOptimalTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(InferenceEngine::SizeVector({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(fakeQuantizeOnDataValues)),
|
::testing::ValuesIn(fakeQuantizeOnDataValues)),
|
||||||
|
@ -18,20 +18,20 @@ const std::vector<ngraph::element::Type> netPrecisions = {
|
|||||||
|
|
||||||
const std::vector<MatMulShapes> shapes = {
|
const std::vector<MatMulShapes> shapes = {
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 16 },
|
ngraph::PartialShape{ 1, 16 },
|
||||||
ngraph::Shape{ 16, 8 },
|
ngraph::PartialShape{ 16, 8 },
|
||||||
false,
|
false,
|
||||||
false
|
false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 16 },
|
ngraph::PartialShape{ 1, 16 },
|
||||||
ngraph::Shape{ 8, 16 },
|
ngraph::PartialShape{ 8, 16 },
|
||||||
false,
|
false,
|
||||||
true
|
true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 16, 1 },
|
ngraph::PartialShape{ 16, 1 },
|
||||||
ngraph::Shape{ 16, 8 },
|
ngraph::PartialShape{ 16, 8 },
|
||||||
true,
|
true,
|
||||||
false
|
false
|
||||||
},
|
},
|
||||||
|
@ -12,8 +12,8 @@ const std::vector<element::Type> precisions = {
|
|||||||
element::f32
|
element::f32
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector< ngraph::Shape > inputAndQuantizationShapes = {
|
const std::vector< ngraph::PartialShape > inputAndQuantizationShapes = {
|
||||||
Shape{ 1, 4, 16, 16 },
|
{ 1, 4, 16, 16 },
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<ngraph::builder::subgraph::DequantizationOperations> deqOperations = {
|
const std::vector<ngraph::builder::subgraph::DequantizationOperations> deqOperations = {
|
||||||
|
@ -36,7 +36,7 @@ const std::vector<ngraph::builder::subgraph::FakeQuantizeOnData> fakeQuantizeOnD
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FuseFakeQuantizeAndScaleShiftTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FuseFakeQuantizeAndScaleShiftTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 9, 9 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 9, 9 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(fakeQuantizeOnDataValues)),
|
::testing::ValuesIn(fakeQuantizeOnDataValues)),
|
||||||
|
@ -14,7 +14,7 @@ namespace {
|
|||||||
const std::vector<FuseFakeQuantizeTransformationTestValues> testValues = {
|
const std::vector<FuseFakeQuantizeTransformationTestValues> testValues = {
|
||||||
// 1) Multiply
|
// 1) Multiply
|
||||||
{
|
{
|
||||||
ngraph::Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
ngraph::element::f32,
|
ngraph::element::f32,
|
||||||
@ -26,7 +26,7 @@ const std::vector<FuseFakeQuantizeTransformationTestValues> testValues = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ngraph::Shape{128, 3},
|
{128, 3},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
ngraph::element::f32,
|
ngraph::element::f32,
|
||||||
@ -39,7 +39,7 @@ const std::vector<FuseFakeQuantizeTransformationTestValues> testValues = {
|
|||||||
},
|
},
|
||||||
// 1) Multiply by zero
|
// 1) Multiply by zero
|
||||||
{
|
{
|
||||||
ngraph::Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
ngraph::element::f32,
|
ngraph::element::f32,
|
||||||
@ -52,7 +52,7 @@ const std::vector<FuseFakeQuantizeTransformationTestValues> testValues = {
|
|||||||
},
|
},
|
||||||
// 1) Subtract + Multiply
|
// 1) Subtract + Multiply
|
||||||
{
|
{
|
||||||
ngraph::Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
ngraph::element::f32,
|
ngraph::element::f32,
|
||||||
@ -65,7 +65,7 @@ const std::vector<FuseFakeQuantizeTransformationTestValues> testValues = {
|
|||||||
},
|
},
|
||||||
// 1) Convert + Subtract + Multiply
|
// 1) Convert + Subtract + Multiply
|
||||||
{
|
{
|
||||||
ngraph::Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
ngraph::element::f32,
|
ngraph::element::f32,
|
||||||
@ -78,7 +78,7 @@ const std::vector<FuseFakeQuantizeTransformationTestValues> testValues = {
|
|||||||
},
|
},
|
||||||
// 1) Convert + Subtract + Multiply 2) Add
|
// 1) Convert + Subtract + Multiply 2) Add
|
||||||
{
|
{
|
||||||
ngraph::Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
ngraph::element::f32,
|
ngraph::element::f32,
|
||||||
@ -91,7 +91,7 @@ const std::vector<FuseFakeQuantizeTransformationTestValues> testValues = {
|
|||||||
},
|
},
|
||||||
// issue #40611 for FP32
|
// issue #40611 for FP32
|
||||||
{
|
{
|
||||||
ngraph::Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
{ },
|
{ },
|
||||||
|
@ -14,7 +14,7 @@ namespace {
|
|||||||
|
|
||||||
const std::vector<FuseMultiplyToFakeQuantizeTransformationTestValues> testValues = {
|
const std::vector<FuseMultiplyToFakeQuantizeTransformationTestValues> testValues = {
|
||||||
{
|
{
|
||||||
Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
{ 256ul, {}, { 0.f }, { 2.55f }, { 0.f }, { 2.55f } },
|
{ 256ul, {}, { 0.f }, { 2.55f }, { 0.f }, { 2.55f } },
|
||||||
@ -22,7 +22,7 @@ const std::vector<FuseMultiplyToFakeQuantizeTransformationTestValues> testValues
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
{ 256ul, {}, { -1.28f }, { 1.27f }, { 10.f }, { 2.55f } },
|
{ 256ul, {}, { -1.28f }, { 1.27f }, { 10.f }, { 2.55f } },
|
||||||
|
@ -14,7 +14,7 @@ namespace {
|
|||||||
|
|
||||||
const std::vector<FuseSubtractToFakeQuantizeTransformationTestValues> testValues = {
|
const std::vector<FuseSubtractToFakeQuantizeTransformationTestValues> testValues = {
|
||||||
{
|
{
|
||||||
Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
{ 256ul, {}, { 0.f }, { 2.55f }, { 10.f }, { 255.f } },
|
{ 256ul, {}, { 0.f }, { 2.55f }, { 10.f }, { 255.f } },
|
||||||
@ -22,7 +22,7 @@ const std::vector<FuseSubtractToFakeQuantizeTransformationTestValues> testValues
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
{ 256ul, {}, { -1.28f }, { 1.27f }, { 0.f }, { 255.f } },
|
{ 256ul, {}, { -1.28f }, { 1.27f }, { 0.f }, { 255.f } },
|
||||||
|
@ -16,7 +16,7 @@ const std::vector<ngraph::element::Type> netPrecisions = {
|
|||||||
// ngraph::element::f16
|
// ngraph::element::f16
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<ngraph::Shape> dimensions = {
|
const std::vector<ngraph::PartialShape> dimensions = {
|
||||||
{ 1, 3, 16, 16 }
|
{ 1, 3, 16, 16 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -23,8 +23,8 @@ const std::vector<ngraph::pass::low_precision::LayerTransformation::Params> tras
|
|||||||
const std::vector<LayerTestsDefinitions::GroupConvolutionTransformationParam> params = {
|
const std::vector<LayerTestsDefinitions::GroupConvolutionTransformationParam> params = {
|
||||||
// group convolution, tensor quantization
|
// group convolution, tensor quantization
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 6, 24, 24 },
|
{ 1, 6, 24, 24 },
|
||||||
ngraph::Shape{ 1, 24, 18, 18 },
|
{ 1, 24, 18, 18 },
|
||||||
3ul,
|
3ul,
|
||||||
-1,
|
-1,
|
||||||
{ 256ul, ngraph::Shape { 1, 1, 1, 1 }, { 0.f }, { 25.5f }, { 0.f }, { 25.5f } },
|
{ 256ul, ngraph::Shape { 1, 1, 1, 1 }, { 0.f }, { 25.5f }, { 0.f }, { 25.5f } },
|
||||||
@ -34,8 +34,8 @@ const std::vector<LayerTestsDefinitions::GroupConvolutionTransformationParam> pa
|
|||||||
},
|
},
|
||||||
// group convolution, tensor quantization
|
// group convolution, tensor quantization
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 6, 24, 24 },
|
{ 1, 6, 24, 24 },
|
||||||
ngraph::Shape{ 1, 24, 18, 18 },
|
{ 1, 24, 18, 18 },
|
||||||
3ul,
|
3ul,
|
||||||
0,
|
0,
|
||||||
{ 256ul, ngraph::Shape { 1, 1, 1, 1 }, { 0.f }, { 25.5f }, { 0.f }, { 25.5f } },
|
{ 256ul, ngraph::Shape { 1, 1, 1, 1 }, { 0.f }, { 25.5f }, { 0.f }, { 25.5f } },
|
||||||
@ -45,8 +45,8 @@ const std::vector<LayerTestsDefinitions::GroupConvolutionTransformationParam> pa
|
|||||||
},
|
},
|
||||||
// group convolution, tensor quantization
|
// group convolution, tensor quantization
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 6, 24, 24 },
|
{ 1, 6, 24, 24 },
|
||||||
ngraph::Shape{ 1, 24, 18, 18 },
|
{ 1, 24, 18, 18 },
|
||||||
3ul,
|
3ul,
|
||||||
1,
|
1,
|
||||||
{ 256ul, ngraph::Shape { 1, 1, 1, 1 }, { 0.f }, { 25.5f }, { 0.f }, { 25.5f } },
|
{ 256ul, ngraph::Shape { 1, 1, 1, 1 }, { 0.f }, { 25.5f }, { 0.f }, { 25.5f } },
|
||||||
@ -56,8 +56,8 @@ const std::vector<LayerTestsDefinitions::GroupConvolutionTransformationParam> pa
|
|||||||
},
|
},
|
||||||
// group convolution, per-channel quantization
|
// group convolution, per-channel quantization
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 6, 24, 24 },
|
{ 1, 6, 24, 24 },
|
||||||
ngraph::Shape{ 1, 24, 18, 18 },
|
{ 1, 24, 18, 18 },
|
||||||
3ul,
|
3ul,
|
||||||
-1,
|
-1,
|
||||||
{
|
{
|
||||||
@ -72,8 +72,8 @@ const std::vector<LayerTestsDefinitions::GroupConvolutionTransformationParam> pa
|
|||||||
},
|
},
|
||||||
// depth-wise convolution, tensor quantization
|
// depth-wise convolution, tensor quantization
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 6, 24, 24 },
|
{ 1, 6, 24, 24 },
|
||||||
ngraph::Shape{ 1, 6, 18, 18 },
|
{ 1, 6, 18, 18 },
|
||||||
6ul,
|
6ul,
|
||||||
-1,
|
-1,
|
||||||
{ 256ul, ngraph::Shape { 1, 1, 1, 1 }, { 0.f }, { 25.5f }, { 0.f }, { 25.5f } },
|
{ 256ul, ngraph::Shape { 1, 1, 1, 1 }, { 0.f }, { 25.5f }, { 0.f }, { 25.5f } },
|
||||||
@ -81,8 +81,8 @@ const std::vector<LayerTestsDefinitions::GroupConvolutionTransformationParam> pa
|
|||||||
},
|
},
|
||||||
// depth-wise convolution, per-channel quantization
|
// depth-wise convolution, per-channel quantization
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 6, 24, 24 },
|
{ 1, 6, 24, 24 },
|
||||||
ngraph::Shape{ 1, 6, 18, 18 },
|
{ 1, 6, 18, 18 },
|
||||||
6ul,
|
6ul,
|
||||||
-1,
|
-1,
|
||||||
{
|
{
|
||||||
|
@ -488,7 +488,7 @@ const std::vector<LayerTestsDefinitions::GroupConvolutionQDqTransformationParam>
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<ngraph::Shape> shapes = {
|
const std::vector<ngraph::PartialShape> shapes = {
|
||||||
{ 1, 4, 7, 7 }
|
{ 1, 4, 7, 7 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ const std::vector<ngraph::element::Type> precisions = {
|
|||||||
ngraph::element::f32
|
ngraph::element::f32
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<std::pair<ngraph::Shape, ngraph::Shape>> shapes = {
|
const std::vector<std::pair<ngraph::PartialShape, ngraph::Shape>> shapes = {
|
||||||
{{1, 4, 16, 16}, {32, 32}},
|
{{1, 4, 16, 16}, {32, 32}},
|
||||||
{{1, 2, 48, 80}, {50, 60}},
|
{{1, 2, 48, 80}, {50, 60}},
|
||||||
};
|
};
|
||||||
|
@ -45,7 +45,7 @@ std::vector<MatMulTransformationTestValues> testValues = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, MatMulTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, MatMulTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(precisions),
|
::testing::ValuesIn(precisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 384, 1024 })),
|
::testing::Values(ngraph::PartialShape({ 1, 384, 1024 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(testValues)),
|
::testing::ValuesIn(testValues)),
|
||||||
MatMulTransformation::getTestCaseName);
|
MatMulTransformation::getTestCaseName);
|
||||||
|
@ -21,9 +21,9 @@ const std::vector<LayerTestsDefinitions::MatMulWithOptimizedConstantFakeQuantize
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<std::pair<ngraph::Shape, ngraph::Shape>> inputShapes = {
|
const std::vector<std::pair<ngraph::PartialShape, ngraph::Shape>> inputShapes = {
|
||||||
std::pair<ngraph::Shape, ngraph::Shape>({ 1, 16 }, { 10, 16 }),
|
{{ 1, 16 }, { 10, 16 }},
|
||||||
std::pair<ngraph::Shape, ngraph::Shape>({ 1, 16 }, { 16, 10 })
|
{{ 1, 16 }, { 16, 10 }}
|
||||||
};
|
};
|
||||||
|
|
||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, MatMulWithOptimizedConstantFakeQuantizeTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, MatMulWithOptimizedConstantFakeQuantizeTransformation,
|
||||||
|
@ -12,8 +12,8 @@ const std::vector<element::Type> precisions = {
|
|||||||
element::f32
|
element::f32
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector< ngraph::Shape > inputShapes = {
|
const std::vector< ngraph::PartialShape > inputShapes = {
|
||||||
Shape{ 1ul, 4ul, 16ul, 16ul }, Shape{ 1ul, 4ul, 16ul, 16ul, 16ul }
|
{ 1ul, 4ul, 16ul, 16ul }, { 1ul, 4ul, 16ul, 16ul, 16ul }
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<builder::subgraph::FakeQuantizeOnData> fqOnData = {
|
const std::vector<builder::subgraph::FakeQuantizeOnData> fqOnData = {
|
||||||
|
@ -70,7 +70,7 @@ const std::vector<LayerTestsDefinitions::MultiplyTestValues> params = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, MultiplyTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, MultiplyTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(InferenceEngine::SizeVector({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
MultiplyTransformation::getTestCaseName);
|
MultiplyTransformation::getTestCaseName);
|
||||||
|
@ -24,7 +24,7 @@ const std::vector<MultiplyWithOneParentTransformationValues> values = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, MultiplyWithOneParentTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, MultiplyWithOneParentTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(values)),
|
::testing::ValuesIn(values)),
|
||||||
MultiplyWithOneParentTransformation::getTestCaseName);
|
MultiplyWithOneParentTransformation::getTestCaseName);
|
||||||
|
@ -12,8 +12,8 @@ const std::vector<element::Type> precisions = {
|
|||||||
element::f32
|
element::f32
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector< ngraph::Shape > inputAndQuantizationShapes = {
|
const std::vector<ngraph::PartialShape> inputAndQuantizationShapes = {
|
||||||
Shape{ 1ul, 4ul, 16ul, 16ul },
|
{ 1ul, 4ul, 16ul, 16ul },
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<AxisSet> reductionAxes = { { 2, 3 }, { 1, 2, 3 } };
|
const std::vector<AxisSet> reductionAxes = { { 2, 3 }, { 1, 2, 3 } };
|
||||||
|
@ -16,9 +16,9 @@ const std::vector<ngraph::element::Type> precisions = {
|
|||||||
//ngraph::element::f16
|
//ngraph::element::f16
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<std::pair<ngraph::Shape, ngraph::Shape> > inputAndQuantizationShapes = {
|
const std::vector<std::pair<ngraph::PartialShape, ngraph::Shape> > inputAndQuantizationShapes = {
|
||||||
{ ngraph::Shape({ 1ul, 4ul, 16ul, 16ul }), ngraph::Shape({ 1ul }) },
|
{ { 1ul, 4ul, 16ul, 16ul }, { 1ul } },
|
||||||
{ ngraph::Shape({ 1ul, 4ul, 16ul, 16ul }), ngraph::Shape({ 1ul, 4ul, 1ul, 1ul }) },
|
{ { 1ul, 4ul, 16ul, 16ul }, { 1ul, 4ul, 1ul, 1ul } },
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<std::vector<uint64_t>> axes = {
|
const std::vector<std::vector<uint64_t>> axes = {
|
||||||
|
@ -26,7 +26,7 @@ std::vector<PReluTestValues> testValues = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, PReluTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, PReluTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(precisions),
|
::testing::ValuesIn(precisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(testValues)),
|
::testing::ValuesIn(testValues)),
|
||||||
PReluTransformation::getTestCaseName);
|
PReluTransformation::getTestCaseName);
|
||||||
|
@ -61,7 +61,7 @@ const std::vector<PullReshapeThroughDequantizationTestValues> params = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<ngraph::Shape> inputShapes = {
|
const std::vector<ngraph::PartialShape> inputShapes = {
|
||||||
{ 1, 16, 9, 9 },
|
{ 1, 16, 9, 9 },
|
||||||
{ 4, 16, 9, 9 }
|
{ 4, 16, 9, 9 }
|
||||||
};
|
};
|
||||||
|
@ -107,7 +107,7 @@ const std::vector<LayerTestsDefinitions::ReduceMaxTransformationParam> params =
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReduceMaxTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReduceMaxTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 10, 10 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 10, 10 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
|
@ -107,7 +107,7 @@ const std::vector<LayerTestsDefinitions::ReduceMeanTransformationParam> params =
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReduceMeanTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReduceMeanTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 10, 10 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 10, 10 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
|
@ -107,7 +107,7 @@ const std::vector<LayerTestsDefinitions::ReduceMinTransformationParam> params =
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReduceMinTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReduceMinTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 10, 10 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 10, 10 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
|
@ -93,7 +93,7 @@ const std::vector<LayerTestsDefinitions::ReduceSumTransformationParam> params =
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReduceSumTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReduceSumTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 10, 10 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 10, 10 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
|
@ -27,7 +27,7 @@ std::vector<ReluTestValues> testValues = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReluTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReluTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(precisions),
|
::testing::ValuesIn(precisions),
|
||||||
::testing::Values(InferenceEngine::SizeVector({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(testValues)),
|
::testing::ValuesIn(testValues)),
|
||||||
ReluTransformation::getTestCaseName);
|
ReluTransformation::getTestCaseName);
|
||||||
|
@ -24,28 +24,28 @@ const std::vector<ngraph::pass::low_precision::LayerTransformation::Params> tras
|
|||||||
const std::vector<ReshapeTransformationParam> params = {
|
const std::vector<ReshapeTransformationParam> params = {
|
||||||
// 3D -> 4D
|
// 3D -> 4D
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 3, 32 },
|
{ 1, 3, 32 },
|
||||||
{ 1, 3, 4, 8 },
|
{ 1, 3, 4, 8 },
|
||||||
{ 256ul, ngraph::Shape{ 1, 1, 1 }, { 0.f }, { 255.f }, { 0.f }, { 25.5f } },
|
{ 256ul, ngraph::Shape{ 1, 1, 1 }, { 0.f }, { 255.f }, { 0.f }, { 25.5f } },
|
||||||
true
|
true
|
||||||
},
|
},
|
||||||
// 4D -> 3D
|
// 4D -> 3D
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 3, 16, 16 },
|
{ 1, 3, 16, 16 },
|
||||||
{ 1, 3, 256 },
|
{ 1, 3, 256 },
|
||||||
{ 256ul, ngraph::Shape{ 1, 1, 1, 1 }, { 0.f }, { 255.f }, { 0.f }, { 25.5f } },
|
{ 256ul, ngraph::Shape{ 1, 1, 1, 1 }, { 0.f }, { 255.f }, { 0.f }, { 25.5f } },
|
||||||
true
|
true
|
||||||
},
|
},
|
||||||
// 4D -> 3D
|
// 4D -> 3D
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 3, 16, 16 },
|
{ 1, 3, 16, 16 },
|
||||||
{ 0, 3, -1 },
|
{ 0, 3, -1 },
|
||||||
{ 256ul, ngraph::Shape{ 1, 3, 1, 1 }, { 0.f }, { 255.f }, { 0.f, 0.f, 0.f }, { 255.f, 25.5f, 2.55f } },
|
{ 256ul, ngraph::Shape{ 1, 3, 1, 1 }, { 0.f }, { 255.f }, { 0.f, 0.f, 0.f }, { 255.f, 25.5f, 2.55f } },
|
||||||
true
|
true
|
||||||
},
|
},
|
||||||
// 4D -> 2D
|
// 4D -> 2D
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 3, 4, 8 },
|
{ 1, 3, 4, 8 },
|
||||||
{ 1, -1 },
|
{ 1, -1 },
|
||||||
{ 256ul, ngraph::Shape{ 1, 1, 1, 1 }, { 0.f }, { 255.f }, { 0.f }, { 25.5f } },
|
{ 256ul, ngraph::Shape{ 1, 1, 1, 1 }, { 0.f }, { 255.f }, { 0.f }, { 25.5f } },
|
||||||
true
|
true
|
||||||
|
@ -15,7 +15,7 @@ const std::vector<ngraph::element::Type> netPrecisions = {
|
|||||||
// ngraph::element::f16
|
// ngraph::element::f16
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<ngraph::Shape> inputShapes = {
|
const std::vector<ngraph::PartialShape> inputShapes = {
|
||||||
{ 1, 3, 16, 16 },
|
{ 1, 3, 16, 16 },
|
||||||
{ 4, 3, 16, 16 }
|
{ 4, 3, 16, 16 }
|
||||||
};
|
};
|
||||||
|
@ -87,7 +87,7 @@ const std::vector<LayerTestsDefinitions::SplitTransformationParam> params = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, SplitTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, SplitTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
|
@ -92,7 +92,7 @@ const std::vector<LayerTestsDefinitions::StridedSliceTransformationParam> params
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, StridedSliceTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, StridedSliceTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 24, 24 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 24, 24 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
|
@ -25,7 +25,7 @@ const std::vector<LayerTransformation::Params> trasformationParamValues = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, SubtractTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, SubtractTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(trasformationParamValues)),
|
::testing::ValuesIn(trasformationParamValues)),
|
||||||
SubtractTransformation::getTestCaseName);
|
SubtractTransformation::getTestCaseName);
|
||||||
|
@ -29,7 +29,7 @@ const std::vector<bool> transposeChannelDimValues = { true, false };
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, TransposeAfterMatMulTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, TransposeAfterMatMulTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(perTensorValues),
|
::testing::ValuesIn(perTensorValues),
|
||||||
|
@ -18,7 +18,7 @@ const std::vector<ngraph::element::Type> precisions = {
|
|||||||
const std::vector<TransposeTransformationTestValues> testValues = {
|
const std::vector<TransposeTransformationTestValues> testValues = {
|
||||||
// U8: per-tensor quantization
|
// U8: per-tensor quantization
|
||||||
{
|
{
|
||||||
ngraph::Shape({ 1, 1000, 1, 1}),
|
{ 1, 1000, 1, 1},
|
||||||
{ 0, 2, 3, 1},
|
{ 0, 2, 3, 1},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
ngraph::element::f32,
|
ngraph::element::f32,
|
||||||
@ -26,7 +26,7 @@ const std::vector<TransposeTransformationTestValues> testValues = {
|
|||||||
},
|
},
|
||||||
// U8: per-channel quantization
|
// U8: per-channel quantization
|
||||||
{
|
{
|
||||||
ngraph::Shape({ 1, 3, 1, 1}),
|
{ 1, 3, 1, 1},
|
||||||
{ 0, 2, 3, 1},
|
{ 0, 2, 3, 1},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
ngraph::element::f32,
|
ngraph::element::f32,
|
||||||
|
@ -93,7 +93,7 @@ const std::vector<LayerTestsDefinitions::VariadicSplitTransformationParam> param
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, VariadicSplitTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, VariadicSplitTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
::testing::Values(CommonTestUtils::DEVICE_CPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
|
@ -71,7 +71,7 @@ const std::vector<LayerTestsDefinitions::AddTestValues> params = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, AddTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, AddTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
AddTransformation::getTestCaseName);
|
AddTransformation::getTestCaseName);
|
||||||
|
@ -79,7 +79,7 @@ const std::vector<LayerTestsDefinitions::ClampTransformationParam> params = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ClampTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ClampTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
|
@ -42,7 +42,7 @@ const std::vector<ConcatTransformationTestValues> testValues = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ConcatTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ConcatTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(precisions),
|
::testing::ValuesIn(precisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(testValues)),
|
::testing::ValuesIn(testValues)),
|
||||||
ConcatTransformation::getTestCaseName);
|
ConcatTransformation::getTestCaseName);
|
||||||
|
@ -45,7 +45,7 @@ const std::vector<ConcatWithChildAndOutputTransformationParam> testValues = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ConcatWithChildAndOutputTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ConcatWithChildAndOutputTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 6, 10, 10 })),
|
::testing::Values(ngraph::PartialShape({ 1, 6, 10, 10 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(testValues),
|
::testing::ValuesIn(testValues),
|
||||||
::testing::ValuesIn(trasformationParamValues)),
|
::testing::ValuesIn(trasformationParamValues)),
|
||||||
|
@ -48,7 +48,7 @@ const std::vector<bool> multiChannel = { true/*, false*/ };
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ConcatWithDifferentChildrenTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ConcatWithDifferentChildrenTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 10, 10 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 10, 10 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(testValues),
|
::testing::ValuesIn(testValues),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
|
@ -29,7 +29,7 @@ const std::vector<bool> multiChannelValues = { /*true,*/ false };
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ConcatWithIntermediateTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ConcatWithIntermediateTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(transparentIntermediateValues),
|
::testing::ValuesIn(transparentIntermediateValues),
|
||||||
|
@ -26,7 +26,7 @@ const std::vector<ngraph::pass::low_precision::LayerTransformation::Params> tras
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ConcatWithNeighborsGraphTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ConcatWithNeighborsGraphTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(precisions),
|
::testing::ValuesIn(precisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues)),
|
::testing::ValuesIn(trasformationParamValues)),
|
||||||
ConcatWithNeighborsGraphTransformation::getTestCaseName);
|
ConcatWithNeighborsGraphTransformation::getTestCaseName);
|
||||||
|
@ -48,7 +48,7 @@ const std::vector<ConcatWithSplitTransformationParam> testValues = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ConcatWithSplitTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ConcatWithSplitTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 6, 10, 10 })),
|
::testing::Values(ngraph::PartialShape({ 1, 6, 10, 10 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(testValues),
|
::testing::ValuesIn(testValues),
|
||||||
::testing::ValuesIn(trasformationParamValues)),
|
::testing::ValuesIn(trasformationParamValues)),
|
||||||
|
@ -102,7 +102,7 @@ const std::vector<LayerTestsDefinitions::ConvolutionBackpropDataTransformationPa
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<std::pair<ngraph::Shape, bool>> inputShapes = {
|
const std::vector<std::pair<ngraph::PartialShape, bool>> inputShapes = {
|
||||||
{{ 1, 8, 16, 16 }, false},
|
{{ 1, 8, 16, 16 }, false},
|
||||||
{{ 1, 32, 16, 16 }, true}
|
{{ 1, 32, 16, 16 }, true}
|
||||||
};
|
};
|
||||||
|
@ -233,7 +233,7 @@ const std::vector<LayerTestsDefinitions::ConvolutionQDqTransformationParam> para
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<ngraph::Shape> shapes = {
|
const std::vector<ngraph::PartialShape> shapes = {
|
||||||
{ 1, 3, 4, 4 },
|
{ 1, 3, 4, 4 },
|
||||||
{ 4, 3, 4, 4 }
|
{ 4, 3, 4, 4 }
|
||||||
};
|
};
|
||||||
|
@ -22,7 +22,7 @@ const std::vector<DepthToSpace::DepthToSpaceMode> modes = {
|
|||||||
DepthToSpace::DepthToSpaceMode::DEPTH_FIRST
|
DepthToSpace::DepthToSpaceMode::DEPTH_FIRST
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<ngraph::Shape> inputShapesBS2 = {
|
const std::vector<ngraph::PartialShape> inputShapesBS2 = {
|
||||||
{1, 4, 3, 3}, {2, 16, 5, 4}
|
{1, 4, 3, 3}, {2, 16, 5, 4}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ const auto DepthToSpaceBS2 = ::testing::Combine(
|
|||||||
|
|
||||||
INSTANTIATE_TEST_SUITE_P(LPT_BS2, DepthToSpaceTransformation, DepthToSpaceBS2, DepthToSpaceTransformation::getTestCaseName);
|
INSTANTIATE_TEST_SUITE_P(LPT_BS2, DepthToSpaceTransformation, DepthToSpaceBS2, DepthToSpaceTransformation::getTestCaseName);
|
||||||
|
|
||||||
const std::vector<ngraph::Shape> inputShapesBS3 = {
|
const std::vector<ngraph::PartialShape> inputShapesBS3 = {
|
||||||
{1, 9, 3, 3}, {2, 27, 5, 4}
|
{1, 9, 3, 3}, {2, 27, 5, 4}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ const std::vector<ngraph::builder::subgraph::FakeQuantizeOnData> fakeQuantizes =
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeAndAvgPoolTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeAndAvgPoolTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(precisions),
|
::testing::ValuesIn(precisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 32, 72, 48 })),
|
::testing::Values(ngraph::PartialShape({ 1, 32, 72, 48 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(fakeQuantizes)),
|
::testing::ValuesIn(fakeQuantizes)),
|
||||||
|
@ -30,7 +30,7 @@ const std::vector<ngraph::builder::subgraph::FakeQuantizeOnData> fakeQuantizes =
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeAndMaxPoolTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeAndMaxPoolTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(precisions),
|
::testing::ValuesIn(precisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 32, 72, 48 })),
|
::testing::Values(ngraph::PartialShape({ 1, 32, 72, 48 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(fakeQuantizes)),
|
::testing::ValuesIn(fakeQuantizes)),
|
||||||
|
@ -31,7 +31,7 @@ const std::vector<FakeQuantizeAndTwoOutputBranchesWithConvolution> testValues =
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeAndTwoOutputBranchesWithConvolutionTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeAndTwoOutputBranchesWithConvolutionTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 32, 72, 48 })),
|
::testing::Values(ngraph::PartialShape({ 1, 32, 72, 48 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(testValues)),
|
::testing::ValuesIn(testValues)),
|
||||||
|
@ -60,7 +60,7 @@ const std::vector<FakeQuantizePrecisionSelectionTransformationTestValues> testVa
|
|||||||
INSTANTIATE_TEST_SUITE_P(DISABLED_LPT, FakeQuantizePrecisionSelectionTransformation,
|
INSTANTIATE_TEST_SUITE_P(DISABLED_LPT, FakeQuantizePrecisionSelectionTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 32, 72, 48 })),
|
::testing::Values(ngraph::PartialShape({ 1, 32, 72, 48 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(testValues)),
|
::testing::ValuesIn(testValues)),
|
||||||
|
@ -62,7 +62,7 @@ const std::vector<FakeQuantizeTransformationParam> fakeQuantizeOnDataValues = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 32, 72, 48 })),
|
::testing::Values(ngraph::PartialShape({ 1, 32, 72, 48 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(fakeQuantizeOnDataValues)),
|
::testing::ValuesIn(fakeQuantizeOnDataValues)),
|
||||||
|
@ -104,7 +104,7 @@ const std::vector<FakeQuantizeWithNotOptimalTransformationTestValues> fakeQuanti
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeWithNotOptimalTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FakeQuantizeWithNotOptimalTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(InferenceEngine::SizeVector({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(fakeQuantizeOnDataValues)),
|
::testing::ValuesIn(fakeQuantizeOnDataValues)),
|
||||||
|
@ -18,20 +18,20 @@ const std::vector<ngraph::element::Type> netPrecisions = {
|
|||||||
|
|
||||||
const std::vector<MatMulShapes> shapes = {
|
const std::vector<MatMulShapes> shapes = {
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 16 },
|
{ 1, 16 },
|
||||||
ngraph::Shape{ 16, 8 },
|
{ 16, 8 },
|
||||||
false,
|
false,
|
||||||
false
|
false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 16 },
|
{ 1, 16 },
|
||||||
ngraph::Shape{ 8, 16 },
|
{ 8, 16 },
|
||||||
false,
|
false,
|
||||||
true
|
true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 16, 1 },
|
{ 16, 1 },
|
||||||
ngraph::Shape{ 16, 8 },
|
{ 16, 8 },
|
||||||
true,
|
true,
|
||||||
false
|
false
|
||||||
},
|
},
|
||||||
|
@ -13,8 +13,8 @@ const std::vector<element::Type> precisions = {
|
|||||||
// element::f16 // TODO: temporarily commented due to failing in GPU Plugin on constant folding stage
|
// element::f16 // TODO: temporarily commented due to failing in GPU Plugin on constant folding stage
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector< ngraph::Shape > inputAndQuantizationShapes = {
|
const std::vector<ngraph::PartialShape>inputAndQuantizationShapes = {
|
||||||
Shape{ 1, 4, 16, 16 },
|
{ 1, 4, 16, 16 },
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<ngraph::builder::subgraph::DequantizationOperations> deqOperations = {
|
const std::vector<ngraph::builder::subgraph::DequantizationOperations> deqOperations = {
|
||||||
|
@ -37,7 +37,7 @@ const std::vector<ngraph::builder::subgraph::FakeQuantizeOnData> fakeQuantizeOnD
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FuseFakeQuantizeAndScaleShiftTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, FuseFakeQuantizeAndScaleShiftTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 9, 9 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 9, 9 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(fakeQuantizeOnDataValues)),
|
::testing::ValuesIn(fakeQuantizeOnDataValues)),
|
||||||
|
@ -13,7 +13,7 @@ namespace {
|
|||||||
const std::vector<FuseFakeQuantizeTransformationTestValues> testValues = {
|
const std::vector<FuseFakeQuantizeTransformationTestValues> testValues = {
|
||||||
// 1) Multiply
|
// 1) Multiply
|
||||||
{
|
{
|
||||||
ngraph::Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
ngraph::element::f32,
|
ngraph::element::f32,
|
||||||
@ -26,7 +26,7 @@ const std::vector<FuseFakeQuantizeTransformationTestValues> testValues = {
|
|||||||
},
|
},
|
||||||
// 1) Multiply with different input and output shape
|
// 1) Multiply with different input and output shape
|
||||||
{
|
{
|
||||||
ngraph::Shape{128, 3},
|
{128, 3},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
ngraph::element::f32,
|
ngraph::element::f32,
|
||||||
@ -39,7 +39,7 @@ const std::vector<FuseFakeQuantizeTransformationTestValues> testValues = {
|
|||||||
},
|
},
|
||||||
// 1) Multiply by zero
|
// 1) Multiply by zero
|
||||||
{
|
{
|
||||||
ngraph::Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
ngraph::element::f32,
|
ngraph::element::f32,
|
||||||
@ -52,7 +52,7 @@ const std::vector<FuseFakeQuantizeTransformationTestValues> testValues = {
|
|||||||
},
|
},
|
||||||
// 1) Subtract + Multiply
|
// 1) Subtract + Multiply
|
||||||
{
|
{
|
||||||
ngraph::Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
ngraph::element::f32,
|
ngraph::element::f32,
|
||||||
@ -65,7 +65,7 @@ const std::vector<FuseFakeQuantizeTransformationTestValues> testValues = {
|
|||||||
},
|
},
|
||||||
// 1) Convert + Subtract + Multiply
|
// 1) Convert + Subtract + Multiply
|
||||||
{
|
{
|
||||||
ngraph::Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
ngraph::element::f32,
|
ngraph::element::f32,
|
||||||
@ -78,7 +78,7 @@ const std::vector<FuseFakeQuantizeTransformationTestValues> testValues = {
|
|||||||
},
|
},
|
||||||
// 1) Convert + Subtract + Multiply 2) Add
|
// 1) Convert + Subtract + Multiply 2) Add
|
||||||
{
|
{
|
||||||
ngraph::Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
ngraph::element::f32,
|
ngraph::element::f32,
|
||||||
@ -91,7 +91,7 @@ const std::vector<FuseFakeQuantizeTransformationTestValues> testValues = {
|
|||||||
},
|
},
|
||||||
// issue #40611 for FP32
|
// issue #40611 for FP32
|
||||||
{
|
{
|
||||||
ngraph::Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
{ },
|
{ },
|
||||||
|
@ -13,7 +13,7 @@ using namespace ngraph;
|
|||||||
namespace {
|
namespace {
|
||||||
const std::vector<FuseMultiplyToFakeQuantizeTransformationTestValues> testValues = {
|
const std::vector<FuseMultiplyToFakeQuantizeTransformationTestValues> testValues = {
|
||||||
{
|
{
|
||||||
Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
{ 256ul, {}, { 0.f }, { 2.55f }, { 0.f }, { 2.55f } },
|
{ 256ul, {}, { 0.f }, { 2.55f }, { 0.f }, { 2.55f } },
|
||||||
@ -21,7 +21,7 @@ namespace {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
{ 256ul, {}, { -1.28f }, { 1.27f }, { 10.f }, { 2.55f } },
|
{ 256ul, {}, { -1.28f }, { 1.27f }, { 10.f }, { 2.55f } },
|
||||||
|
@ -13,7 +13,7 @@ using namespace ngraph;
|
|||||||
namespace {
|
namespace {
|
||||||
const std::vector<FuseSubtractToFakeQuantizeTransformationTestValues> testValues = {
|
const std::vector<FuseSubtractToFakeQuantizeTransformationTestValues> testValues = {
|
||||||
{
|
{
|
||||||
Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
{ 256ul, {}, { 0.f }, { 2.55f }, { 10.f }, { 255.f } },
|
{ 256ul, {}, { 0.f }, { 2.55f }, { 10.f }, { 255.f } },
|
||||||
@ -21,7 +21,7 @@ namespace {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Shape{1, 3, 16, 16},
|
{1, 3, 16, 16},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
{
|
{
|
||||||
{ 256ul, {}, { -1.28f }, { 1.27f }, { 0.f }, { 255.f } },
|
{ 256ul, {}, { -1.28f }, { 1.27f }, { 0.f }, { 255.f } },
|
||||||
|
@ -16,7 +16,7 @@ const std::vector<ngraph::element::Type> netPrecisions = {
|
|||||||
ngraph::element::f16
|
ngraph::element::f16
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<ngraph::Shape> dimensions = {
|
const std::vector<ngraph::PartialShape> dimensions = {
|
||||||
{1, 3, 16, 16}
|
{1, 3, 16, 16}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ const std::vector<ngraph::pass::low_precision::LayerTransformation::Params> tras
|
|||||||
const std::vector<LayerTestsDefinitions::GroupConvolutionTransformationParam> params = {
|
const std::vector<LayerTestsDefinitions::GroupConvolutionTransformationParam> params = {
|
||||||
// group convolution, tensor quantization
|
// group convolution, tensor quantization
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 6, 24, 24 },
|
{ 1, 6, 24, 24 },
|
||||||
ngraph::Shape{ 1, 24, 18, 18 },
|
ngraph::Shape{ 1, 24, 18, 18 },
|
||||||
3ul,
|
3ul,
|
||||||
-1,
|
-1,
|
||||||
@ -34,7 +34,7 @@ const std::vector<LayerTestsDefinitions::GroupConvolutionTransformationParam> pa
|
|||||||
},
|
},
|
||||||
// group convolution, tensor quantization
|
// group convolution, tensor quantization
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 6, 24, 24 },
|
{ 1, 6, 24, 24 },
|
||||||
ngraph::Shape{ 1, 24, 18, 18 },
|
ngraph::Shape{ 1, 24, 18, 18 },
|
||||||
3ul,
|
3ul,
|
||||||
0,
|
0,
|
||||||
@ -45,7 +45,7 @@ const std::vector<LayerTestsDefinitions::GroupConvolutionTransformationParam> pa
|
|||||||
},
|
},
|
||||||
// group convolution, tensor quantization
|
// group convolution, tensor quantization
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 6, 24, 24 },
|
{ 1, 6, 24, 24 },
|
||||||
ngraph::Shape{ 1, 24, 18, 18 },
|
ngraph::Shape{ 1, 24, 18, 18 },
|
||||||
3ul,
|
3ul,
|
||||||
1,
|
1,
|
||||||
@ -56,7 +56,7 @@ const std::vector<LayerTestsDefinitions::GroupConvolutionTransformationParam> pa
|
|||||||
},
|
},
|
||||||
// group convolution, per-channel quantization
|
// group convolution, per-channel quantization
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 6, 24, 24 },
|
{ 1, 6, 24, 24 },
|
||||||
ngraph::Shape{ 1, 24, 18, 18 },
|
ngraph::Shape{ 1, 24, 18, 18 },
|
||||||
3ul,
|
3ul,
|
||||||
-1,
|
-1,
|
||||||
@ -72,7 +72,7 @@ const std::vector<LayerTestsDefinitions::GroupConvolutionTransformationParam> pa
|
|||||||
},
|
},
|
||||||
// depthwise convolution, tensor quantization
|
// depthwise convolution, tensor quantization
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 6, 24, 24 },
|
{ 1, 6, 24, 24 },
|
||||||
ngraph::Shape{ 1, 6, 18, 18 },
|
ngraph::Shape{ 1, 6, 18, 18 },
|
||||||
6ul,
|
6ul,
|
||||||
-1,
|
-1,
|
||||||
@ -81,7 +81,7 @@ const std::vector<LayerTestsDefinitions::GroupConvolutionTransformationParam> pa
|
|||||||
},
|
},
|
||||||
// depthwise convolution, per-channel quantization
|
// depthwise convolution, per-channel quantization
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 6, 24, 24 },
|
{ 1, 6, 24, 24 },
|
||||||
ngraph::Shape{ 1, 6, 18, 18 },
|
ngraph::Shape{ 1, 6, 18, 18 },
|
||||||
6ul,
|
6ul,
|
||||||
-1,
|
-1,
|
||||||
|
@ -488,7 +488,7 @@ const std::vector<LayerTestsDefinitions::GroupConvolutionQDqTransformationParam>
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<ngraph::Shape> shapes = {
|
const std::vector<ngraph::PartialShape> shapes = {
|
||||||
{ 1, 4, 7, 7 }
|
{ 1, 4, 7, 7 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ const std::vector<ngraph::element::Type> precisions = {
|
|||||||
ngraph::element::f16
|
ngraph::element::f16
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<std::pair<ngraph::Shape, ngraph::Shape>> shapes = {
|
const std::vector<std::pair<ngraph::PartialShape, ngraph::Shape>> shapes = {
|
||||||
{{1, 4, 16, 16}, {32, 32}},
|
{{1, 4, 16, 16}, {32, 32}},
|
||||||
{{1, 2, 48, 80}, {50, 60}},
|
{{1, 2, 48, 80}, {50, 60}},
|
||||||
};
|
};
|
||||||
|
@ -33,7 +33,7 @@ std::vector<MatMulTransformationTestValues> testValues = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, MatMulTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, MatMulTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(precisions),
|
::testing::ValuesIn(precisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 384, 1024 })),
|
::testing::Values(ngraph::PartialShape({ 1, 384, 1024 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(testValues)),
|
::testing::ValuesIn(testValues)),
|
||||||
MatMulTransformation::getTestCaseName);
|
MatMulTransformation::getTestCaseName);
|
||||||
|
@ -22,9 +22,9 @@ const std::vector<LayerTestsDefinitions::MatMulWithOptimizedConstantFakeQuantize
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<std::pair<ngraph::Shape, ngraph::Shape>> inputShapes = {
|
const std::vector<std::pair<ngraph::PartialShape, ngraph::Shape>> inputShapes = {
|
||||||
std::pair<ngraph::Shape, ngraph::Shape>({ 1, 16 }, { 10, 16 }),
|
{{ 1, 16 }, { 10, 16 }},
|
||||||
std::pair<ngraph::Shape, ngraph::Shape>({ 1, 16 }, { 16, 10 })
|
{{ 1, 16 }, { 16, 10 }}
|
||||||
};
|
};
|
||||||
|
|
||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, MatMulWithOptimizedConstantFakeQuantizeTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, MatMulWithOptimizedConstantFakeQuantizeTransformation,
|
||||||
|
@ -13,8 +13,8 @@ const std::vector<element::Type> precisions = {
|
|||||||
element::f16
|
element::f16
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector< ngraph::Shape > inputShapes = {
|
const std::vector<ngraph::PartialShape>inputShapes = {
|
||||||
Shape{ 1ul, 4ul, 16ul, 16ul }, Shape{ 1ul, 4ul, 16ul, 16ul, 16ul }
|
{ 1ul, 4ul, 16ul, 16ul }, { 1ul, 4ul, 16ul, 16ul, 16ul }
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<builder::subgraph::FakeQuantizeOnData> fqOnData = {
|
const std::vector<builder::subgraph::FakeQuantizeOnData> fqOnData = {
|
||||||
|
@ -70,7 +70,7 @@ const std::vector<LayerTestsDefinitions::MultiplyTestValues> params = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, MultiplyTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, MultiplyTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
MultiplyTransformation::getTestCaseName);
|
MultiplyTransformation::getTestCaseName);
|
||||||
|
@ -24,7 +24,7 @@ const std::vector<MultiplyWithOneParentTransformationValues> values = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, MultiplyWithOneParentTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, MultiplyWithOneParentTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(InferenceEngine::SizeVector({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(values)),
|
::testing::ValuesIn(values)),
|
||||||
MultiplyWithOneParentTransformation::getTestCaseName);
|
MultiplyWithOneParentTransformation::getTestCaseName);
|
||||||
|
@ -13,8 +13,8 @@ namespace {
|
|||||||
element::f16
|
element::f16
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<ngraph::Shape> inputAndQuantizationShapes = {
|
const std::vector<ngraph::PartialShape> inputAndQuantizationShapes = {
|
||||||
Shape{ 1ul, 4ul, 16ul, 16ul },
|
{ 1ul, 4ul, 16ul, 16ul },
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<AxisSet> reductionAxes = { { 2, 3 }, { 1, 2, 3 } };
|
const std::vector<AxisSet> reductionAxes = { { 2, 3 }, { 1, 2, 3 } };
|
||||||
|
@ -16,9 +16,9 @@ const std::vector<ngraph::element::Type> precisions = {
|
|||||||
ngraph::element::f16
|
ngraph::element::f16
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<std::pair<ngraph::Shape, ngraph::Shape> > inputAndQuantizationShapes = {
|
const std::vector<std::pair<ngraph::PartialShape, ngraph::Shape> > inputAndQuantizationShapes = {
|
||||||
{ ngraph::Shape({ 1ul, 4ul, 16ul, 16ul }), ngraph::Shape({ 1ul }) },
|
{ { 1ul, 4ul, 16ul, 16ul }, { 1ul } },
|
||||||
{ ngraph::Shape({ 1ul, 4ul, 16ul, 16ul }), ngraph::Shape({ 1ul, 4ul, 1ul, 1ul }) },
|
{ { 1ul, 4ul, 16ul, 16ul }, { 1ul, 4ul, 1ul, 1ul } },
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<std::vector<uint64_t>> axes = {
|
const std::vector<std::vector<uint64_t>> axes = {
|
||||||
|
@ -28,7 +28,7 @@ std::vector<PReluTestValues> testValues = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(DISABLED_LPT, PReluTransformation,
|
INSTANTIATE_TEST_SUITE_P(DISABLED_LPT, PReluTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(precisions),
|
::testing::ValuesIn(precisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(testValues)),
|
::testing::ValuesIn(testValues)),
|
||||||
PReluTransformation::getTestCaseName);
|
PReluTransformation::getTestCaseName);
|
||||||
|
@ -61,7 +61,7 @@ const std::vector<PullReshapeThroughDequantizationTestValues> params = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<ngraph::Shape> inputShapes = {
|
const std::vector<ngraph::PartialShape> inputShapes = {
|
||||||
{ 1, 16, 9, 9 },
|
{ 1, 16, 9, 9 },
|
||||||
{ 4, 16, 9, 9 }
|
{ 4, 16, 9, 9 }
|
||||||
};
|
};
|
||||||
|
@ -91,7 +91,7 @@ const std::vector<LayerTestsDefinitions::ReduceMaxTransformationParam> params =
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReduceMaxTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReduceMaxTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 10, 10 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 10, 10 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
|
@ -91,7 +91,7 @@ const std::vector<LayerTestsDefinitions::ReduceMeanTransformationParam> params =
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReduceMeanTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReduceMeanTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 10, 10 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 10, 10 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
|
@ -91,7 +91,7 @@ const std::vector<LayerTestsDefinitions::ReduceMinTransformationParam> params =
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReduceMinTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReduceMinTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 10, 10 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 10, 10 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
|
@ -81,7 +81,7 @@ const std::vector<LayerTestsDefinitions::ReduceSumTransformationParam> params =
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReduceSumTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReduceSumTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 10, 10 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 10, 10 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
|
@ -27,7 +27,7 @@ std::vector<ReluTestValues> testValues = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReluTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, ReluTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(precisions),
|
::testing::ValuesIn(precisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(testValues)),
|
::testing::ValuesIn(testValues)),
|
||||||
ReluTransformation::getTestCaseName);
|
ReluTransformation::getTestCaseName);
|
||||||
|
@ -24,28 +24,28 @@ const std::vector<ngraph::pass::low_precision::LayerTransformation::Params> tras
|
|||||||
const std::vector<ReshapeTransformationParam> params = {
|
const std::vector<ReshapeTransformationParam> params = {
|
||||||
// 3D -> 4D
|
// 3D -> 4D
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 3, 32 },
|
{ 1, 3, 32 },
|
||||||
{ 1, 3, 4, 8 },
|
{ 1, 3, 4, 8 },
|
||||||
{ 256ul, ngraph::Shape{ 1, 1, 1 }, { 0.f }, { 255.f }, { 0.f }, { 25.5f } },
|
{ 256ul, ngraph::Shape{ 1, 1, 1 }, { 0.f }, { 255.f }, { 0.f }, { 25.5f } },
|
||||||
true
|
true
|
||||||
},
|
},
|
||||||
// 4D -> 3D
|
// 4D -> 3D
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 3, 16, 16 },
|
{ 1, 3, 16, 16 },
|
||||||
{ 1, 3, 256 },
|
{ 1, 3, 256 },
|
||||||
{ 256ul, ngraph::Shape{ 1, 1, 1, 1 }, { 0.f }, { 255.f }, { 0.f }, { 25.5f } },
|
{ 256ul, ngraph::Shape{ 1, 1, 1, 1 }, { 0.f }, { 255.f }, { 0.f }, { 25.5f } },
|
||||||
true
|
true
|
||||||
},
|
},
|
||||||
// 4D -> 3D
|
// 4D -> 3D
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 3, 16, 16 },
|
{ 1, 3, 16, 16 },
|
||||||
{ 0, 3, -1 },
|
{ 0, 3, -1 },
|
||||||
{ 256ul, ngraph::Shape{ 1, 3, 1, 1 }, { 0.f }, { 255.f }, { 0.f, 0.f, 0.f }, { 255.f, 25.5f, 2.55f } },
|
{ 256ul, ngraph::Shape{ 1, 3, 1, 1 }, { 0.f }, { 255.f }, { 0.f, 0.f, 0.f }, { 255.f, 25.5f, 2.55f } },
|
||||||
true
|
true
|
||||||
},
|
},
|
||||||
// 4D -> 2D
|
// 4D -> 2D
|
||||||
{
|
{
|
||||||
ngraph::Shape{ 1, 3, 4, 8 },
|
{ 1, 3, 4, 8 },
|
||||||
{ 1, -1 },
|
{ 1, -1 },
|
||||||
{ 256ul, ngraph::Shape{ 1, 1, 1, 1 }, { 0.f }, { 255.f }, { 0.f }, { 25.5f } },
|
{ 256ul, ngraph::Shape{ 1, 1, 1, 1 }, { 0.f }, { 255.f }, { 0.f }, { 25.5f } },
|
||||||
true
|
true
|
||||||
|
@ -15,7 +15,7 @@ const std::vector<ngraph::element::Type> netPrecisions = {
|
|||||||
ngraph::element::f16
|
ngraph::element::f16
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::vector<ngraph::Shape> inputShapes = {
|
const std::vector<ngraph::PartialShape> inputShapes = {
|
||||||
{ 1, 3, 16, 16 }
|
{ 1, 3, 16, 16 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ const std::vector<LayerTestsDefinitions::SplitTransformationParam> params = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, SplitTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, SplitTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
|
@ -89,7 +89,7 @@ const std::vector<LayerTestsDefinitions::StridedSliceTransformationParam> params
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, StridedSliceTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, StridedSliceTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 24, 24 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 24, 24 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
|
@ -23,7 +23,7 @@ const std::vector<LayerTransformation::Params> trasformationParamValues = {
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, SubtractTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, SubtractTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues)),
|
::testing::ValuesIn(trasformationParamValues)),
|
||||||
SubtractTransformation::getTestCaseName);
|
SubtractTransformation::getTestCaseName);
|
||||||
|
@ -27,7 +27,7 @@ const std::vector<bool> transposeChannelDimValues = { true, false };
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, TransposeAfterMatMulTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, TransposeAfterMatMulTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(perTensorValues),
|
::testing::ValuesIn(perTensorValues),
|
||||||
|
@ -18,7 +18,7 @@ const std::vector<ngraph::element::Type> precisions = {
|
|||||||
const std::vector<TransposeTransformationTestValues> testValues = {
|
const std::vector<TransposeTransformationTestValues> testValues = {
|
||||||
// U8: per-tensor quantization
|
// U8: per-tensor quantization
|
||||||
{
|
{
|
||||||
ngraph::Shape({ 1, 1000, 1, 1}),
|
{ 1, 1000, 1, 1},
|
||||||
{ 0, 2, 3, 1},
|
{ 0, 2, 3, 1},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
ngraph::element::f32,
|
ngraph::element::f32,
|
||||||
@ -26,7 +26,7 @@ const std::vector<TransposeTransformationTestValues> testValues = {
|
|||||||
},
|
},
|
||||||
// U8: per-channel quantization
|
// U8: per-channel quantization
|
||||||
{
|
{
|
||||||
ngraph::Shape({ 1, 3, 1, 1}),
|
{ 1, 3, 1, 1},
|
||||||
{ 0, 2, 3, 1},
|
{ 0, 2, 3, 1},
|
||||||
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
LayerTestsUtils::LayerTransformationParamsNGraphFactory::createParamsU8I8(),
|
||||||
ngraph::element::f32,
|
ngraph::element::f32,
|
||||||
|
@ -93,7 +93,7 @@ const std::vector<LayerTestsDefinitions::VariadicSplitTransformationParam> param
|
|||||||
INSTANTIATE_TEST_SUITE_P(smoke_LPT, VariadicSplitTransformation,
|
INSTANTIATE_TEST_SUITE_P(smoke_LPT, VariadicSplitTransformation,
|
||||||
::testing::Combine(
|
::testing::Combine(
|
||||||
::testing::ValuesIn(netPrecisions),
|
::testing::ValuesIn(netPrecisions),
|
||||||
::testing::Values(ngraph::Shape({ 1, 3, 16, 16 })),
|
::testing::Values(ngraph::PartialShape({ 1, 3, 16, 16 })),
|
||||||
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
::testing::Values(CommonTestUtils::DEVICE_GPU),
|
||||||
::testing::ValuesIn(trasformationParamValues),
|
::testing::ValuesIn(trasformationParamValues),
|
||||||
::testing::ValuesIn(params)),
|
::testing::ValuesIn(params)),
|
||||||
|
@ -22,7 +22,7 @@ public:
|
|||||||
|
|
||||||
typedef std::tuple<
|
typedef std::tuple<
|
||||||
ngraph::element::Type,
|
ngraph::element::Type,
|
||||||
ngraph::Shape,
|
ngraph::PartialShape,
|
||||||
std::string,
|
std::string,
|
||||||
AddTestValues
|
AddTestValues
|
||||||
> AddTransformationParams;
|
> AddTransformationParams;
|
||||||
|
@ -19,7 +19,7 @@ public:
|
|||||||
|
|
||||||
typedef std::tuple<
|
typedef std::tuple<
|
||||||
ngraph::element::Type,
|
ngraph::element::Type,
|
||||||
ngraph::Shape,
|
ngraph::PartialShape,
|
||||||
std::string,
|
std::string,
|
||||||
ngraph::pass::low_precision::LayerTransformation::Params,
|
ngraph::pass::low_precision::LayerTransformation::Params,
|
||||||
ClampTransformationParam
|
ClampTransformationParam
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user