aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/graph/GraphBuilder.h
diff options
context:
space:
mode:
authorthecha01 <theo.charalambous@arm.com>2020-08-24 17:21:41 +0100
committerManuel Bottini <manuel.bottini@arm.com>2020-09-07 13:37:52 +0000
commite8f05da5fb919aa209e1bf0e5c70dd15fff84b7f (patch)
tree13edef507f44b77249d5fb617d762e63c70d98d5 /arm_compute/graph/GraphBuilder.h
parent7c850d5ca1aa0dd255eed794134535ece7849f96 (diff)
downloadComputeLibrary-e8f05da5fb919aa209e1bf0e5c70dd15fff84b7f.tar.gz
Add ArgMinMax layer node to Graph API
Change-Id: I2ccb2c65edd2932b76e905af3d747324b65c2f7f Signed-off-by: thecha01 <theo.charalambous@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3910 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/graph/GraphBuilder.h')
-rw-r--r--arm_compute/graph/GraphBuilder.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arm_compute/graph/GraphBuilder.h b/arm_compute/graph/GraphBuilder.h
index ff40497667..2632bf1484 100644
--- a/arm_compute/graph/GraphBuilder.h
+++ b/arm_compute/graph/GraphBuilder.h
@@ -84,6 +84,21 @@ public:
*/
static NodeID add_activation_node(Graph &g, NodeParams params, NodeIdxPair input, ActivationLayerInfo act_info,
const QuantizationInfo &out_quant_info = QuantizationInfo());
+ /** Adds an activation layer node to the graph
+ *
+ * @param[in] g Graph to add the node to
+ * @param[in] params Common node parameters
+ * @param[in] input Input to the activation layer node as a NodeID-Index pair
+ * @param[in] op Reduction Operation: min or max
+ * @param[in] axis Axis to perform reduction operation across
+ * @param[in] out_data_type (Optional) Output data type
+ * @param[in] out_quant_info (Optional) Output quantization info
+ *
+ * @return Node ID of the created node, EmptyNodeID in case of error
+ */
+ static NodeID add_arg_min_max_node(Graph &g, NodeParams params, NodeIdxPair input, ReductionOperation op, unsigned int axis,
+ DataType out_data_type = DataType::UNKNOWN,
+ const QuantizationInfo &out_quant_info = QuantizationInfo());
/** Adds a batch normalization layer node to the graph
*
* @param[in] g Graph to add the node to