From b0cd5d8cf6945bed4df62603799d73b5413654a1 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 22 Feb 2021 18:17:43 +0000 Subject: Use polymorphic_downcast instead of dynamic_cast Signed-off-by: Georgios Pinitas Change-Id: Ibd8f629c3f0a2943705ba0f7d65a264948dac4b0 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5147 Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins --- src/graph/Workload.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/graph') diff --git a/src/graph/Workload.cpp b/src/graph/Workload.cpp index 7020503171..2bae1c8ca6 100644 --- a/src/graph/Workload.cpp +++ b/src/graph/Workload.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2020 Arm Limited. + * Copyright (c) 2018-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -27,6 +27,8 @@ #include "arm_compute/graph/ITensorHandle.h" #include "arm_compute/graph/nodes/PrintLayerNode.h" +#include "support/Cast.h" + namespace arm_compute { namespace graph @@ -46,7 +48,7 @@ void execute_task(ExecutionTask &task) // COMPMID-3012 - Hide the printing logic from the execute_task method in the graph API else if(task.node->type() == NodeType::PrintLayer) { - auto print_node = dynamic_cast(task.node); + auto print_node = utils::cast::polymorphic_downcast(task.node); auto input_handle = print_node->input(0)->handle(); auto transform = print_node->transform(); -- cgit v1.2.1