From 96f6769de9d9ebe3e631b81aac9a82934a79b0c4 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Thu, 13 Sep 2018 11:39:28 +0100 Subject: COMPMID-1582 Add YOLOLayer to graph API Change-Id: I8eb7cf220f038b0ac70cb3df1f399a3b66bbca1b Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/148245 Reviewed-by: Georgios Pinitas Tested-by: bsgcomp --- 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 21a96a36c0..21c85b5667 100644 --- a/arm_compute/graph/GraphBuilder.h +++ b/arm_compute/graph/GraphBuilder.h @@ -340,6 +340,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 a yolo 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] act_info Activation layer parameters + * @param[in] num_classes Number of classes to activate + * + * @return Node ID of the created node, EmptyNodeID in case of error + */ + static NodeID add_yolo_node(Graph &g, NodeParams params, NodeIdxPair input, ActivationLayerInfo act_info, int32_t num_classes); }; } // namespace graph } // namespace arm_compute -- cgit v1.2.1