From 2ae08600d6266f10a13f0ced3039d94b3c1e8dbe Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Tue, 23 Feb 2021 00:04:26 +0000 Subject: Fix redundant ternary operator in yolo node graph builder Signed-off-by: Georgios Pinitas Change-Id: I8b44022f4b8c66a1413b0e9a1afc3efa43753fd3 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5156 Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- src/graph/GraphBuilder.cpp | 4 ++-- 1 file 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(cls_start, cls_end); NodeID cls_act = g.add_node(act_info); set_node_params(g, cls, params); -- cgit v1.2.1