From 785df505a621a5b98084246056d80090073b950b Mon Sep 17 00:00:00 2001 From: Matthew Bentham Date: Fri, 21 Sep 2018 10:29:58 +0100 Subject: IVGCVSW-949 Simplify use of IntialiseArmComputeClTensorData Change-Id: I556881e34f26e8152feaaba06d99828394872f58 --- src/backends/ClWorkloads/ClWorkloadUtils.hpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/backends/ClWorkloads/ClWorkloadUtils.hpp') diff --git a/src/backends/ClWorkloads/ClWorkloadUtils.hpp b/src/backends/ClWorkloads/ClWorkloadUtils.hpp index 6f1b155745..a10237cf40 100644 --- a/src/backends/ClWorkloads/ClWorkloadUtils.hpp +++ b/src/backends/ClWorkloads/ClWorkloadUtils.hpp @@ -42,8 +42,8 @@ void InitialiseArmComputeClTensorData(arm_compute::CLTensor& clTensor, const T* CopyArmComputeClTensorData(data, clTensor); } -inline void InitializeArmComputeClTensorDataForFloatTypes(arm_compute::CLTensor& clTensor, - const ConstCpuTensorHandle *handle) +inline void InitializeArmComputeClTensorData(arm_compute::CLTensor& clTensor, + const ConstCpuTensorHandle* handle) { BOOST_ASSERT(handle); switch(handle->GetTensorInfo().GetDataType()) @@ -54,8 +54,14 @@ inline void InitializeArmComputeClTensorDataForFloatTypes(arm_compute::CLTensor& case DataType::Float32: InitialiseArmComputeClTensorData(clTensor, handle->GetConstTensor()); break; + case DataType::QuantisedAsymm8: + InitialiseArmComputeClTensorData(clTensor, handle->GetConstTensor()); + break; + case DataType::Signed32: + InitialiseArmComputeClTensorData(clTensor, handle->GetConstTensor()); + break; default: - BOOST_ASSERT_MSG(false, "Unexpected floating point type."); + BOOST_ASSERT_MSG(false, "Unexpected tensor type."); } }; -- cgit v1.2.1