From 3db1ba9938986e7096184ad22020a71775075d03 Mon Sep 17 00:00:00 2001 From: Isabella Gottardi Date: Fri, 17 May 2019 12:35:20 +0100 Subject: COMPMID-2362: Add Quantization Layer to the graph API Change-Id: I9766ad54e8da1367ba192dfeeccdc879f3729550 Signed-off-by: Isabella Gottardi Reviewed-on: https://review.mlplatform.org/c/1172 Comments-Addressed: Arm Jenkins Reviewed-by: Georgios Pinitas Tested-by: 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 1d6ecc83ed..048c693639 100644 --- a/arm_compute/graph/GraphBuilder.h +++ b/arm_compute/graph/GraphBuilder.h @@ -354,6 +354,16 @@ public: * @return Node ID of the created node, EmptyNodeID in case of error */ static NodeID add_priorbox_node(Graph &g, NodeParams params, NodeIdxPair input0, NodeIdxPair input1, const PriorBoxLayerInfo &prior_info); + /** Adds a quantization 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 quantization layer node as a NodeID-Index pair + * @param[in] out_quant_info Output quantization info + * + * @return Node ID of the created node, EmptyNodeID in case of error + */ + static NodeID add_quantization_node(Graph &g, NodeParams params, NodeIdxPair input, QuantizationInfo out_quant_info); /** Adds a reorg layer node to the graph * * @param[in] g Graph to add the node to -- cgit v1.2.1