From a8e06ed540a934f966679e1ef1cf7acf295211b3 Mon Sep 17 00:00:00 2001 From: Aron Virginas-Tar Date: Fri, 19 Oct 2018 16:46:15 +0100 Subject: IVGCVSW-1955: Unify backend exceptions (wrap cl::Error) * Added wrapper function around arm_compute::IFunction::run() that catches cl::Error and wraps it into an armnn::RuntimeException * Added MakeWorkload template inside ClWorkloadFactory that catches cl::Error and wraps it into an armnn::RuntimeException * Replaced cl::Error with armnn::RuntimeException in catch statements inside LoadedNetwork Change-Id: I2340f41ae02b8db1d7ef5157824a50e7410854e3 --- src/backends/cl/workloads/ClSoftmaxUint8Workload.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/backends/cl/workloads/ClSoftmaxUint8Workload.cpp') diff --git a/src/backends/cl/workloads/ClSoftmaxUint8Workload.cpp b/src/backends/cl/workloads/ClSoftmaxUint8Workload.cpp index 7e0589e89f..d06306e178 100644 --- a/src/backends/cl/workloads/ClSoftmaxUint8Workload.cpp +++ b/src/backends/cl/workloads/ClSoftmaxUint8Workload.cpp @@ -36,8 +36,7 @@ ClSoftmaxUint8Workload::ClSoftmaxUint8Workload(const SoftmaxQueueDescriptor& des void ClSoftmaxUint8Workload::Execute() const { ARMNN_SCOPED_PROFILING_EVENT_CL("ClSoftmaxUint8Workload_Execute"); - - m_SoftmaxLayer.run(); + RunClFunction(m_SoftmaxLayer, CHECK_LOCATION()); } } //namespace armnn -- cgit v1.2.1