From 2bfadd92d638fd4e7b8b3398ce95f15930749189 Mon Sep 17 00:00:00 2001 From: thecha01 Date: Wed, 12 Aug 2020 17:25:51 +0100 Subject: Add StridedSliceLayerNode to graph API Signed-off-by: thecha01 Change-Id: I6d6fb2b053c74e35a86841621486bc0cd34b12b3 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3911 Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins --- arm_compute/graph/GraphBuilder.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'arm_compute/graph/GraphBuilder.h') diff --git a/arm_compute/graph/GraphBuilder.h b/arm_compute/graph/GraphBuilder.h index 4948f5845e..ff40497667 100644 --- a/arm_compute/graph/GraphBuilder.h +++ b/arm_compute/graph/GraphBuilder.h @@ -520,6 +520,19 @@ public: * @return Node ID of the created node, EmptyNodeID in case of error */ static NodeID add_stack_node(Graph &g, NodeParams params, const std::vector &inputs, int axis); + /** Adds a strided slice 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 strided slice layer node as a NodeID-Index pair + * @param[in] starts The starts of the dimensions of the input tensor to be sliced. The length must be of rank(input). + * @param[in] ends The ends of the dimensions of the input tensor to be sliced. The length must be of rank(input). + * @param[in] strides The strides of the dimensions of the input tensor to be sliced. The length must be of rank(input). + * @param[in] info Contains masks for the starts, ends and strides + * + * @return Node ID of the created node, EmptyNodeID in case of error + */ + static NodeID add_strided_slice_node(Graph &g, NodeParams params, NodeIdxPair input, Coordinates &starts, Coordinates &ends, BiStrides &strides, StridedSliceLayerInfo info); /** Adds an upsample layer to the graph * * @param[in] g Graph to add the node to -- cgit v1.2.1