forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
697 additions
and
507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
118 changes: 118 additions & 0 deletions
118
...intel_cpu/tests/functional/single_layer_tests/instances/arm/convolution_backprop_data.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
// Copyright (C) 2018-2023 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
#include "single_layer_tests/classes/convolution_backprop_data.hpp" | ||
#include "shared_test_classes/single_layer/convolution_backprop_data.hpp" | ||
#include "test_utils/cpu_test_utils.hpp" | ||
#include "test_utils/filter_cpu_info.hpp" | ||
#include "test_utils/fusing_test_utils.hpp" | ||
|
||
using namespace CPUTestUtils; | ||
using namespace ov::test; | ||
|
||
namespace CPULayerTestsDefinitions { | ||
|
||
namespace { | ||
|
||
/* INSTANCES */ | ||
/* ============= Deconvolution (Planar 2D) ============= */ | ||
const auto convParams_ExplicitPadding_Planar_2D = ::testing::Combine( | ||
::testing::ValuesIn(kernels2d), | ||
::testing::ValuesIn(strides2d), | ||
::testing::ValuesIn(padBegins2d), | ||
::testing::ValuesIn(padEnds2d), | ||
::testing::ValuesIn(dilations2d), | ||
::testing::ValuesIn(numOutChannels_Planar), | ||
::testing::Values(ngraph::op::PadType::EXPLICIT), | ||
::testing::ValuesIn(emptyOutputPadding) | ||
); | ||
|
||
const std::vector<DeconvInputData> Planar_2D_inputs_smoke = { | ||
DeconvInputData{ | ||
InputShape{{}, {{ 2, 12, 7, 7 }}}, | ||
ngraph::helpers::InputLayerType::CONSTANT, | ||
{} | ||
}, | ||
}; | ||
|
||
const std::vector<DeconvInputData> Planar_2D_inputs_nightly = { | ||
DeconvInputData{ | ||
InputShape{{{1, 10}, 12, 7, 7}, {{ 1, 12, 7, 7}, { 2, 12, 7, 7}, { 3, 12, 7, 7}}}, | ||
ngraph::helpers::InputLayerType::CONSTANT, | ||
{{15, 15}} | ||
}, | ||
}; | ||
|
||
INSTANTIATE_TEST_SUITE_P(smoke_Deconv_2D_Planar_FP32, DeconvolutionLayerCPUTest, | ||
::testing::Combine( | ||
convParams_ExplicitPadding_Planar_2D, | ||
::testing::ValuesIn(Planar_2D_inputs_smoke), | ||
::testing::Values(ElementType::f32), | ||
::testing::ValuesIn(fusingParamsSet), | ||
::testing::ValuesIn(filterCPUInfo({conv_gemm_2D_acl})), | ||
::testing::Values(cpuEmptyPluginConfig)), | ||
DeconvolutionLayerCPUTest::getTestCaseName); | ||
|
||
INSTANTIATE_TEST_SUITE_P(nightly_Deconv_2D_Planar_FP32, DeconvolutionLayerCPUTest, | ||
::testing::Combine( | ||
convParams_ExplicitPadding_Planar_2D, | ||
::testing::ValuesIn(Planar_2D_inputs_nightly), | ||
::testing::Values(ElementType::f32), | ||
::testing::ValuesIn(fusingParamsSet), | ||
::testing::ValuesIn(filterCPUInfo({conv_gemm_2D_acl})), | ||
::testing::Values(cpuEmptyPluginConfig)), | ||
DeconvolutionLayerCPUTest::getTestCaseName); | ||
|
||
INSTANTIATE_TEST_SUITE_P(nightly_Deconv_2D_Planar_BF16, DeconvolutionLayerCPUTest, | ||
::testing::Combine( | ||
convParams_ExplicitPadding_Planar_2D, | ||
::testing::ValuesIn(Planar_2D_inputs_nightly), | ||
::testing::Values(ElementType::f32), | ||
::testing::ValuesIn(fusingParamsSet), | ||
::testing::ValuesIn(filterCPUInfo({conv_gemm_2D_acl})), | ||
::testing::Values(cpuBF16PluginConfig)), | ||
DeconvolutionLayerCPUTest::getTestCaseName); | ||
|
||
/* ============= Deconvolution (Blocked 2D) ============= */ | ||
const std::vector<DeconvInputData> Blocked_2D_inputs_smoke = { | ||
DeconvInputData{ | ||
InputShape{{}, {{ 2, 67, 7, 7 }}}, | ||
ngraph::helpers::InputLayerType::CONSTANT, | ||
{} | ||
}, | ||
}; | ||
|
||
/* ============= Deconvolution auto padding tests ============= */ | ||
const std::vector<DeconvInputData> inputs_2D_AutoPadding = { | ||
DeconvInputData{ | ||
InputShape{{}, {{ 2, 67, 7, 7 }}}, | ||
ngraph::helpers::InputLayerType::CONSTANT, | ||
{} | ||
}, | ||
}; | ||
|
||
const auto deconvParams_AutoPadding_2D = ::testing::Combine( | ||
::testing::ValuesIn(kernels2d), | ||
::testing::ValuesIn(strides2d), | ||
::testing::ValuesIn(padBegins2d), | ||
::testing::ValuesIn(padEnds2d), | ||
::testing::ValuesIn(dilations2d), | ||
::testing::ValuesIn(numOutChannels_Blocked), | ||
::testing::Values(ngraph::op::PadType::SAME_UPPER, ngraph::op::PadType::SAME_LOWER), | ||
::testing::ValuesIn(emptyOutputPadding) | ||
); | ||
|
||
INSTANTIATE_TEST_SUITE_P(smoke_Deconv_2D_AutoPadding_FP32, DeconvolutionLayerCPUTest, | ||
::testing::Combine( | ||
deconvParams_AutoPadding_2D, | ||
::testing::ValuesIn(inputs_2D_AutoPadding), | ||
::testing::Values(ElementType::f32), | ||
::testing::Values(emptyFusingSpec), | ||
::testing::ValuesIn(filterCPUInfo({conv_gemm_2D_acl})), | ||
::testing::Values(cpuEmptyPluginConfig)), | ||
DeconvolutionLayerCPUTest::getTestCaseName); | ||
|
||
} // namespace | ||
|
||
} // namespace CPULayerTestsDefinitions |
Oops, something went wrong.