From 4e1c3f336133319cfe45b037befdb252ffd9b744 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Thu, 20 Sep 2018 17:14:03 +0100 Subject: COMPMID-1595 Add UpsampleLayer to graph API Change-Id: I7427b0fbb222ff9760d47b01a59aee654f2f860f Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/149587 Tested-by: bsgcomp Reviewed-by: Georgios Pinitas --- 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 3821eb3968..1302d2a2b3 100644 --- a/arm_compute/graph/GraphBuilder.h +++ b/arm_compute/graph/GraphBuilder.h @@ -351,6 +351,17 @@ public: * @return Node ID of the created node, EmptyNodeID in case of error */ static NodeID add_split_node(Graph &g, NodeParams params, NodeIdxPair input, unsigned int num_splits, unsigned int axis = 0); + /** Adds an upsample layer to the graph + * + * @param[in] g Graph to add the node to + * @param[in] params Common node parameters + * @param[in] input Input to the yolo layer node as a NodeID-Index pair + * @param[in] info Upsample layer stride info + * @param[in] upsampling_policy Upsampling policy used + * + * @return Node ID of the created node, EmptyNodeID in case of error + */ + static NodeID add_upsample_node(Graph &g, NodeParams params, NodeIdxPair input, Size2D info, InterpolationPolicy upsampling_policy); /** Adds a yolo layer to the graph * * @param[in] g Graph to add the node to -- cgit v1.2.1