From 0a05e6a051e6d9028131de10f00b80bbedf44097 Mon Sep 17 00:00:00 2001 From: thecha01 Date: Fri, 28 Aug 2020 18:40:38 +0100 Subject: Add DepthToSpace layer node to Graph API Change-Id: I5db780fb9c94160130e9986bbfc739124bfa8041 Signed-off-by: thecha01 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3914 Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins --- arm_compute/graph/GraphBuilder.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arm_compute/graph/GraphBuilder.h') diff --git a/arm_compute/graph/GraphBuilder.h b/arm_compute/graph/GraphBuilder.h index bce1ce4c40..4948f5845e 100644 --- a/arm_compute/graph/GraphBuilder.h +++ b/arm_compute/graph/GraphBuilder.h @@ -173,6 +173,16 @@ public: * @return Node ID of the created node, EmptyNodeID in case of error */ static NodeID add_concatenate_node(Graph &g, NodeParams params, const std::vector &inputs, const descriptors::ConcatLayerDescriptor &concat_descriptor); + /** Adds an depth to space 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 depth to space layer node as a NodeID-Index pair + * @param[in] block_shape Block shape to reshape tensor with + * + * @return Node ID of the created node, EmptyNodeID in case of error + */ + static NodeID add_depth_to_space_node(Graph &g, NodeParams params, NodeIdxPair input, int32_t block_shape); /** Adds a depth-wise convolution layer node to the graph * * @param[in] g Graph to add the node to -- cgit v1.2.1