From ae12306486efc55293a40048618abe5e8b19151b Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Fri, 7 May 2021 14:18:01 +0000 Subject: Revert "MLCE-418 Reduce layer does not support multiple axes" This reverts commit d905decd256558bbee165e636ce4242ac3b9c917. Reason for revert: LargeGraph_TENSOR_FLOAT32/FLOAT16 CTS tests failures Change-Id: Ie69826549e73775825f45134375b5b2c41aebd01 --- src/backends/cl/ClBackend.cpp | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'src/backends/cl/ClBackend.cpp') diff --git a/src/backends/cl/ClBackend.cpp b/src/backends/cl/ClBackend.cpp index 92a06aa8e1..f97cb4bba8 100644 --- a/src/backends/cl/ClBackend.cpp +++ b/src/backends/cl/ClBackend.cpp @@ -29,7 +29,6 @@ #include "workloads/ClDivisionWorkload.hpp" #include "workloads/ClFullyConnectedWorkload.hpp" #include "workloads/ClMultiplicationWorkload.hpp" -#include "workloads/ClReduceWorkload.hpp" #include "workloads/ClSubtractionWorkload.hpp" #include @@ -189,8 +188,7 @@ OptimizationViews ClBackend::OptimizeSubgraphView(const SubgraphView& subgraph, if ((base.GetType() == LayerType::DepthwiseConvolution2d || base.GetType() == LayerType::Convolution2d || base.GetType() == LayerType::BatchNormalization || base.GetType() == LayerType::FullyConnected || base.GetType() == LayerType::Addition || base.GetType() == LayerType::Multiplication - || base.GetType() == LayerType::Subtraction || base.GetType() == LayerType::Division - || base.GetType() == LayerType::Reduce) + || base.GetType() == LayerType::Subtraction || base.GetType() == LayerType::Division) && (base.GetAdditionalInformation() == nullptr)) { for (auto output = base.BeginOutputSlots(); output != base.EndOutputSlots(); ++output) @@ -414,26 +412,6 @@ OptimizationViews ClBackend::OptimizeSubgraphView(const SubgraphView& subgraph, } } } - - // Separate check for Reduce as we aren't fusing with activation layer - if (base.GetType() == LayerType::Reduce) - { - ReduceLayer* baseLayer = PolymorphicDowncast(&base); - - // Get params from base layer - ReduceDescriptor reduceDescriptor = baseLayer->GetParameters(); - - arm_compute::Status status = ClReduceWorkloadValidate( - baseLayer->GetInputSlot(0).GetConnectedOutputSlot()->GetTensorInfo(), - baseLayer->GetOutputSlot(0).GetTensorInfo(), - reduceDescriptor); - - if (status) - { - ChainReduceLayers(optimizationViews, baseLayer, reduceDescriptor); - untouched.erase(baseLayer->GetGuid()); - } - } } } } -- cgit v1.2.1