diff options
author | Isabella Gottardi <isabella.gottardi@arm.com> | 2019-05-17 12:35:20 +0100 |
---|---|---|
committer | Isabella Gottardi <isabella.gottardi@arm.com> | 2019-05-20 07:51:02 +0000 |
commit | 3db1ba9938986e7096184ad22020a71775075d03 (patch) | |
tree | 5018e5eecc1c1c81277e8a4c37bc0ad76245d95e /arm_compute/graph/GraphBuilder.h | |
parent | 0eb16cfa5ff4484658ba8630a8dea072445dacbd (diff) | |
download | ComputeLibrary-3db1ba9938986e7096184ad22020a71775075d03.tar.gz |
COMPMID-2362: Add Quantization Layer to the graph API
Change-Id: I9766ad54e8da1367ba192dfeeccdc879f3729550
Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>
Reviewed-on: https://review.mlplatform.org/c/1172
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/graph/GraphBuilder.h')
-rw-r--r-- | arm_compute/graph/GraphBuilder.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 |