Skip to content

Commit

Permalink
added SLT ref test
Browse files Browse the repository at this point in the history
  • Loading branch information
alvoron committed Jan 30, 2025
1 parent 273cfbd commit d8a46fc
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/plugins/intel_cpu/src/nodes/pooling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ dnnl::pooling_forward::primitive_desc createDescriptorHelper(const dnnl::engine&
} // namespace

bool Pooling::isSupportedOperation(const std::shared_ptr<const ov::Node>& op, std::string& errorMessage) noexcept {
#if defined(OV_CPU_WITH_ACL)
auto maxPoolOpBase = ov::as_type_ptr<const ov::op::util::MaxPoolBase>(op);
if (!one_of(maxPoolOpBase->get_rounding_type(), op::RoundingType::CEIL, op::RoundingType::FLOOR)) {
errorMessage = "ACL supports only CEIL and FLOOR rounding for MaxPool";
return false;
}
#endif
try {
if (ov::is_type<const ov::op::v8::MaxPool>(op) || ov::is_type<const ov::op::v14::MaxPool>(op)) {
if (!op->get_output_target_inputs(1).empty()) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright (C) 2025 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

#include "custom/single_layer_tests/classes/pooling.hpp"
#include "utils/cpu_test_utils.hpp"
#include "utils/fusing_test_utils.hpp"
#include "utils/filter_cpu_info.hpp"

using namespace CPUTestUtils;

namespace ov {
namespace test {
namespace Pooling {

INSTANTIATE_TEST_SUITE_P(smoke_MaxPoolV14_CPU_4D, MaxPoolingV14LayerCPUTest,
::testing::Combine(
::testing::ValuesIn(paramsMaxV144D()),
::testing::ValuesIn(inputShapes4D()),
::testing::ValuesIn((inpOutPrecision())),
::testing::ValuesIn(filterCPUInfo({CPUSpecificParams{{}, {}, {"ref_any"}, "ref_any"}})),
::testing::Values(CPUTestUtils::empty_plugin_config)),
MaxPoolingV14LayerCPUTest::getTestCaseName);

} // namespace Pooling
} // namespace test
} // namespace ov
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ std::vector<std::string> disabledTestPatterns() {
// Issue: 141705
retVector.emplace_back(R"(.*smoke_arm_Deconv_2D_Planar_FP16/DeconvolutionLayerCPUTest.*INFERENCE_PRECISION_HINT=f16.*)");
retVector.emplace_back(R"(.*ConcatMultiQuerySDPTest.*u8.*)");
// Issue: 161622
retVector.emplace_back(R"(smoke_MaxPoolV14_CPU_4D/MaxPoolingV14LayerCPUTest.CompareWithRefs/IS=\(\[\?.\?.\?.\?\]\)_TS=\(1.32.8.8\)_\(1.21.8.4\)_\(2.8.8.12\)_\(1.96.125.125\)_Prc=f32_MaxPool_K\(2.2\)_S\(2.2\)_D\(1.1\)_PB\(0.0\)_PE\(0.0\)_Rounding=ceil_torch_AutoPad=same_lower__primitive=ref_any)");
#endif

#if defined(OPENVINO_ARCH_ARM)
Expand Down

0 comments on commit d8a46fc

Please sign in to comment.