diff options
author | thecha01 <theo.charalambous@arm.com> | 2020-09-07 14:50:21 +0100 |
---|---|---|
committer | Theo Charalambous <theo.charalambous@arm.com> | 2020-09-09 09:51:52 +0000 |
commit | d64444ba197c2f95dcf4d205f50a196d5a29cdeb (patch) | |
tree | 509c18d43dd6b6c614782ca2fe2d2111084ed8a7 /src/graph/GraphBuilder.cpp | |
parent | 3603aff36444e01083b93e603e8b9b0a254d4911 (diff) | |
download | ComputeLibrary-d64444ba197c2f95dcf4d205f50a196d5a29cdeb.tar.gz |
Add Reduction operation layer node to graph API
Signed-off-by: thecha01 <theo.charalambous@arm.com>
Change-Id: Ida819fb8c33790cc9da6d69eeb51e0599269197a
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3931
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/graph/GraphBuilder.cpp')
-rw-r--r-- | src/graph/GraphBuilder.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/graph/GraphBuilder.cpp b/src/graph/GraphBuilder.cpp index 33b7c178e5..2f74f065d5 100644 --- a/src/graph/GraphBuilder.cpp +++ b/src/graph/GraphBuilder.cpp @@ -642,6 +642,11 @@ NodeID GraphBuilder::add_quantization_node(Graph &g, NodeParams params, NodeIdxP return create_simple_single_input_output_node<QuantizationLayerNode>(g, params, input, out_quant_info); } +NodeID GraphBuilder::add_reduction_operation_node(Graph &g, NodeParams params, NodeIdxPair input, ReductionOperation op, int axis, bool keep_dims) +{ + return create_simple_single_input_output_node<ReductionLayerNode>(g, params, input, op, axis, keep_dims); +} + NodeID GraphBuilder::add_reorg_node(Graph &g, NodeParams params, NodeIdxPair input, int stride) { return create_simple_single_input_output_node<ReorgLayerNode>(g, params, input, stride); |