From 287051663030ccd945accdcd90905fb48bf30948 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Wed, 21 Mar 2018 20:10:53 +0000 Subject: COMPMID-1007: Add initial validate support to backend Change-Id: I55eae35f35a3c7891e8d535907c861f022e43bea Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/125470 Tested-by: Jenkins Reviewed-by: Gian Marco Iodice --- src/graph2/backends/CL/CLDeviceBackend.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/graph2/backends/CL/CLDeviceBackend.cpp') diff --git a/src/graph2/backends/CL/CLDeviceBackend.cpp b/src/graph2/backends/CL/CLDeviceBackend.cpp index e06033121a..28e053415b 100644 --- a/src/graph2/backends/CL/CLDeviceBackend.cpp +++ b/src/graph2/backends/CL/CLDeviceBackend.cpp @@ -30,6 +30,7 @@ #include "arm_compute/graph2/Tensor.h" #include "arm_compute/graph2/backends/BackendRegistrar.h" #include "arm_compute/graph2/backends/CL/CLFunctionFactory.h" +#include "arm_compute/graph2/backends/CL/CLNodeValidator.h" #include "arm_compute/graph2/backends/CL/CLSubTensorHandle.h" #include "arm_compute/graph2/backends/CL/CLTensorHandle.h" @@ -145,13 +146,12 @@ std::unique_ptr CLDeviceBackend::configure_node(INode &n return CLFunctionFactory::create(&node, ctx); } -arm_compute::Status CLDeviceBackend::validate_node(const INode &node) +arm_compute::Status CLDeviceBackend::validate_node(INode &node) { ARM_COMPUTE_LOG_GRAPH_VERBOSE("Validating CL node with ID : " << node.id() << std::endl); + ARM_COMPUTE_ERROR_ON(node.assigned_target() != Target::CL); - ARM_COMPUTE_UNUSED(node); - - return Status{}; + return CLNodeValidator::validate(&node); } std::shared_ptr CLDeviceBackend::create_memory_manager(MemoryManagerAffinity affinity) -- cgit v1.2.1