diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2021-02-23 00:04:26 +0000 |
---|---|---|
committer | Michele Di Giorgio <michele.digiorgio@arm.com> | 2021-02-23 19:13:51 +0000 |
commit | 2ae08600d6266f10a13f0ced3039d94b3c1e8dbe (patch) | |
tree | 82fab2b2037ab5b6b98ae32a7864236dac79f95b /src/graph/GraphBuilder.cpp | |
parent | ceaa0bfe219631b5a4e638613f90f9fa47a3defe (diff) | |
download | ComputeLibrary-2ae08600d6266f10a13f0ced3039d94b3c1e8dbe.tar.gz |
Fix redundant ternary operator in yolo node graph builder
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com>
Change-Id: I8b44022f4b8c66a1413b0e9a1afc3efa43753fd3
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5156
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/graph/GraphBuilder.cpp')
-rw-r--r-- | src/graph/GraphBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph/GraphBuilder.cpp b/src/graph/GraphBuilder.cpp index 4ae666229e..01d35a15b9 100644 --- a/src/graph/GraphBuilder.cpp +++ b/src/graph/GraphBuilder.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2020 Arm Limited. + * Copyright (c) 2018-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -761,7 +761,7 @@ NodeID GraphBuilder::add_yolo_node(Graph &g, NodeParams params, NodeIdxPair inpu // Activation classes and end part of box const Coordinates cls_start = is_nhwc ? Coordinates(5, 0, 0) : Coordinates(0, 0, 5); - const Coordinates cls_end = is_nhwc ? Coordinates(-1, -1, -1) : Coordinates(-1, -1, -1); + const Coordinates cls_end = Coordinates(-1, -1, -1); NodeID cls = g.add_node<SliceLayerNode>(cls_start, cls_end); NodeID cls_act = g.add_node<ActivationLayerNode>(act_info); set_node_params(g, cls, params); |