IVGCVSW-3722 Add function to specify min or max in ArgMinMaxDescriptor
authorNarumol Prangnawarat <narumol.prangnawarat@arm.com>
Mon, 9 Sep 2019 14:01:18 +0000 (15:01 +0100)
committerNarumol Prangnawarat <narumol.prangnawarat@arm.com>
Mon, 9 Sep 2019 14:10:50 +0000 (15:10 +0100)
Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: I2f9d9968cbfda3ec3eadbe9a746e93e816989a3d

include/armnn/Descriptors.hpp
include/armnn/Types.hpp

index 87f4bdb..e871e89 100644 (file)
@@ -34,8 +34,12 @@ struct ActivationDescriptor
 struct ArgMinMaxDescriptor
 {
     ArgMinMaxDescriptor()
-    : m_Axis(-1) {}
+    : m_Function(ArgMinMaxFunction::Min)
+    , m_Axis(-1) {}
 
+    /// Specify if the function is to find Min or Max.
+    ArgMinMaxFunction m_Function;
+    /// Axis to reduce across the input tensor.
     int m_Axis;
 };
 
index 6d8ea6f..dbcb91a 100644 (file)
@@ -54,6 +54,12 @@ enum class ActivationFunction
     Square      = 9
 };
 
+enum class ArgMinMaxFunction
+{
+    Min = 0,
+    Max = 1
+};
+
 enum class PoolingAlgorithm
 {
     Max     = 0,