From 3603aff36444e01083b93e603e8b9b0a254d4911 Mon Sep 17 00:00:00 2001 From: thecha01 Date: Tue, 1 Sep 2020 14:52:38 +0100 Subject: Add L2Normalize layer node to Graph API Signed-off-by: thecha01 Change-Id: I5cd26a8829060563d63d8c53e5148631ee053eca Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3912 Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins --- arm_compute/graph/GraphBuilder.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'arm_compute/graph/GraphBuilder.h') diff --git a/arm_compute/graph/GraphBuilder.h b/arm_compute/graph/GraphBuilder.h index 2632bf1484..c78c060d75 100644 --- a/arm_compute/graph/GraphBuilder.h +++ b/arm_compute/graph/GraphBuilder.h @@ -336,6 +336,17 @@ public: */ static NodeID add_generate_proposals_node(Graph &g, NodeParams params, NodeIdxPair scores, NodeIdxPair deltas, NodeIdxPair anchors, GenerateProposalsInfo info); + /** Adds a L2 Normalize 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 normalization layer node as a NodeID-Index pair + * @param[in] axis Axis to perform normalization on + * @param[in] epsilon Lower bound value for the normalization + * + * @return Node ID of the created node, EmptyNodeID in case of error + */ + static NodeID add_l2_normalize_node(Graph &g, NodeParams params, NodeIdxPair input, int axis, float epsilon); /** Adds a normalization layer node to the graph * * @param[in] g Graph to add the node to -- cgit v1.2.1