diff options
author | Sheri Zhang <sheri.zhang@arm.com> | 2020-03-16 14:07:51 +0000 |
---|---|---|
committer | Sheri Zhang <sheri.zhang@arm.com> | 2020-03-16 16:35:33 +0000 |
commit | 05b243aff343fd6761bbadb2fcb4d2d98b0848c9 (patch) | |
tree | f0a99e11ae4990aa68881e558b0fd86ca8a1978e /src/core/CPP/kernels | |
parent | a602f03f4c66e5ee2480f1a3fc66847968fc1076 (diff) | |
download | ComputeLibrary-05b243aff343fd6761bbadb2fcb4d2d98b0848c9.tar.gz |
COMPMID-3271: Add support for QASYMM8_SIGNED in CPPTopKVKernel/CPPTopKV
Signed-off-by: Sheri Zhang <sheri.zhang@arm.com>
Change-Id: Ic34616fc3480ca85cc582e4e3db031d631ed5861
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2887
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/CPP/kernels')
-rw-r--r-- | src/core/CPP/kernels/CPPTopKVKernel.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/CPP/kernels/CPPTopKVKernel.cpp b/src/core/CPP/kernels/CPPTopKVKernel.cpp index 533543a988..7f284d4e1e 100644 --- a/src/core/CPP/kernels/CPPTopKVKernel.cpp +++ b/src/core/CPP/kernels/CPPTopKVKernel.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 ARM Limited. + * Copyright (c) 2019-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -54,7 +54,7 @@ inline bool greater_than(T a, T b) Status validate_arguments(const ITensorInfo *predictions, const ITensorInfo *targets, ITensorInfo *output, const unsigned int k) { ARM_COMPUTE_UNUSED(k); - ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(predictions, 1, DataType::QASYMM8, DataType::S32, DataType::F16, DataType::F32); + ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(predictions, 1, DataType::QASYMM8, DataType::QASYMM8_SIGNED, DataType::S32, DataType::F16, DataType::F32); ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(targets, 1, DataType::U32); ARM_COMPUTE_RETURN_ERROR_ON(predictions->num_dimensions() > 2); @@ -145,6 +145,9 @@ void CPPTopKVKernel::run(const Window &window, const ThreadInfo &info) case DataType::QASYMM8: run_topkv<uint8_t>(); break; + case DataType::QASYMM8_SIGNED: + run_topkv<int8_t>(); + break; default: ARM_COMPUTE_ERROR("Not supported"); } |