IVGCVSW-3614 Remove limitation of axis=1 support for Softmax in Cl and Neon
authorNarumol Prangnawarat <narumol.prangnawarat@arm.com>
Tue, 6 Aug 2019 16:34:22 +0000 (17:34 +0100)
committerNarumol Prangnawarat <narumol.prangnawarat@arm.com>
Tue, 6 Aug 2019 16:57:44 +0000 (16:57 +0000)
Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: Id990ae7445080f6b4d5a0e6f942f871879a52f75

src/backends/cl/ClLayerSupport.cpp
src/backends/neon/NeonLayerSupport.cpp

index cca265f..811bf8a 100644 (file)
@@ -605,13 +605,6 @@ bool ClLayerSupport::IsSoftmaxSupported(const TensorInfo& input,
                                         const SoftmaxDescriptor& descriptor,
                                         Optional<std::string&> reasonIfUnsupported) const
 {
-    if (!(descriptor.m_Axis == 1 ||
-         (descriptor.m_Axis < 0 && static_cast<int>(input.GetNumDimensions()) + descriptor.m_Axis == 1)))
-    {
-        SetValueChecked(reasonIfUnsupported, "Cl Softmax: Only supports Axis equal to 1.");
-        return false;
-    }
-    ignore_unused(descriptor);
     FORWARD_WORKLOAD_VALIDATE_FUNC(ClSoftmaxWorkloadValidate, reasonIfUnsupported, input, output, descriptor);
 }
 
index b61279c..b3a57e2 100644 (file)
@@ -549,12 +549,6 @@ bool NeonLayerSupport::IsSoftmaxSupported(const TensorInfo& input,
                                           const SoftmaxDescriptor& descriptor,
                                           Optional<std::string&> reasonIfUnsupported) const
 {
-    if (!(descriptor.m_Axis == 1 ||
-         (descriptor.m_Axis < 0 && static_cast<int>(input.GetNumDimensions()) + descriptor.m_Axis == 1)))
-    {
-        SetValueChecked(reasonIfUnsupported, "Neon Softmax: Only supports Axis equal to 1.");
-        return false;
-    }
     FORWARD_WORKLOAD_VALIDATE_FUNC(NeonSoftmaxWorkloadValidate, reasonIfUnsupported, input, output, descriptor);
 }