From 325279580fdadc36f82eb0aff2a2f3d72d5b71aa Mon Sep 17 00:00:00 2001 From: Manuel Bottini Date: Tue, 5 Nov 2019 16:55:57 +0000 Subject: COMPMID-2106: Extend get_input_accessor() to run input images through QASYMM8 networks Change-Id: I5c44bcc95990c343d7829d885b93e8ff16691c50 Signed-off-by: Manuel Bottini Reviewed-on: https://review.mlplatform.org/c/2226 Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas --- utils/ImageLoader.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'utils/ImageLoader.h') diff --git a/utils/ImageLoader.h b/utils/ImageLoader.h index c03cbdf203..497320e326 100644 --- a/utils/ImageLoader.h +++ b/utils/ImageLoader.h @@ -257,7 +257,7 @@ public: void fill_planar_tensor(T &tensor, bool bgr = false) { ARM_COMPUTE_ERROR_ON(!is_open()); - ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(&tensor, 1, DataType::U8, DataType::F32, DataType::F16); + ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(&tensor, 1, DataType::U8, DataType::QASYMM8, DataType::F32, DataType::F16); const DataLayout data_layout = tensor.info()->data_layout(); const TensorShape tensor_shape = tensor.info()->tensor_shape(); @@ -312,6 +312,7 @@ public: switch(tensor.info()->data_type()) { case DataType::U8: + case DataType::QASYMM8: { *(out.ptr() + 0 * stride_z) = bgr ? blue : red; *(out.ptr() + 1 * stride_z) = green; -- cgit v1.2.1