[CPU] ReduceMean fix for ACL Executor (#16987)
* reduce fix * enable gru, rnn and lstm tests
This commit is contained in:
1 parent
1471a6e8de
commit
496a608a28
3 files changed
+12
-10
No files matched your search
@@ -2,7 +2,6 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
#include "acl_utils.hpp"
|
||||
#include "acl_reduce.hpp"
|
||||
|
||||
namespace ov {
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
// TODO: remove relative path
|
||||
#include "../reduce.hpp"
|
||||
#include "acl_utils.hpp"
|
||||
#include "arm_compute/runtime/NEON/NEFunctions.h"
|
||||
#include "utils/debug_capabilities.h"
|
||||
|
||||
@@ -68,6 +69,17 @@ public:
|
||||
" dimensions maximum. src[0] shape rank is ", srcDescs[0]->getShape().getRank());
|
||||
return false;
|
||||
}
|
||||
if (reduceAttrs.operation == Algorithm::ReduceMean) {
|
||||
arm_compute::Coordinates axesMean;
|
||||
for (size_t i = 0; i < reduceAttrs.axes.size(); ++i) {
|
||||
auto axe = axisCast(reduceAttrs.axes[i], srcDescs[0]->getShape().getRank());
|
||||
if (axe > 3) {
|
||||
DEBUG_LOG("ACL supports 3 or less axis for Reduce op");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -230,20 +230,11 @@ std::vector<std::string> disabledTestPatterns() {
|
||||
retVector.emplace_back(R"(smoke_CompareWithRefs_static/EltwiseLayerTest.EltwiseTests.*)");
|
||||
retVector.emplace_back(R"(smoke_CompareWithRefs_static_check_collapsing/EltwiseLayerTest.EltwiseTests.*)");
|
||||
retVector.emplace_back(R"(smoke_SingleThread/EltwiseLayerTest.EltwiseTests.*)");
|
||||
retVector.emplace_back(R"(smoke_GRUSequenceCommonZeroClip/GRUSequenceTest.CompareWithRefs.*)");
|
||||
retVector.emplace_back(R"(smoke_GRUSequenceCommonClip/GRUSequenceTest.CompareWithRefs.*)");
|
||||
retVector.emplace_back(R"(smoke_StaticShapeLoop/StaticShapeLoopTest.CompareWithRefs.*)");
|
||||
retVector.emplace_back(R"(smoke_StaticShapeLoop/StaticShapeLoopTest.CompareWithPredefinedRefs.*)");
|
||||
retVector.emplace_back(R"(smoke_TrivialLoop/TrivialLoopTest.AutoSlicingInputWithDynCondition_(CheckPredefinedValues|CheckReference).*)");
|
||||
retVector.emplace_back(R"(smoke_LSTMSequenceCommonZeroClip/LSTMSequenceTest.CompareWithRefs.*)");
|
||||
retVector.emplace_back(R"(smoke_LSTMSequenceCommonClip/LSTMSequenceTest.CompareWithRefs.*)");
|
||||
retVector.emplace_back(R"(smoke_Decomposition_(3|4)D/Mvn6LayerTest.CompareWithRefs.*)");
|
||||
retVector.emplace_back(R"(smoke_AvgPool_ExplicitPad_CeilRounding/PoolingLayerTest.CompareWithRefs.*)");
|
||||
retVector.emplace_back(R"(smoke_ReduceLogicalOneAxis/ReduceOpsLayerTest.CompareWithRefs.*)");
|
||||
retVector.emplace_back(R"(smoke_Reduce_InputShapes/ReduceOpsLayerTest.CompareWithRefs.*)");
|
||||
retVector.emplace_back(R"(smoke_ReduceLogical_ReductionTypes/ReduceOpsLayerTest.CompareWithRefs.*)");
|
||||
retVector.emplace_back(R"(smoke_RNNSequenceCommonZeroClip/RNNSequenceTest.CompareWithRefs.*)");
|
||||
retVector.emplace_back(R"(smoke_RNNSequenceCommonClip/RNNSequenceTest.CompareWithRefs.*)");
|
||||
retVector.emplace_back(R"(smoke_INTEL_CPU_TestsDFT_(1|2|3|4)d/DFTLayerTest.CompareWithRefs.*)");
|
||||
retVector.emplace_back(R"(smoke_INTEL_CPU_TestsSelect_none/SelectLayerTest.CompareWithRefImpl/COND=BOOL.*)");
|
||||
retVector.emplace_back(R"(smoke_INTEL_CPU_TestsSelect_numpy/SelectLayerTest.CompareWithRefImpl/COND=BOOL.*)");
|
||||
|
||||
Reference in new issue
Block a user