diff options
author | Pablo Marquez Tello <pablo.tello@arm.com> | 2022-04-06 14:31:25 +0100 |
---|---|---|
committer | Pablo Marquez Tello <pablo.tello@arm.com> | 2022-04-25 10:20:20 +0000 |
commit | f55cca5f17da72004108f92047d3177b7cdb1a76 (patch) | |
tree | 08a1d83f51a017b03603f6c724f660fd1f084b2e /src/cpu/kernels/CpuActivationKernel.cpp | |
parent | fa6877f94b12ec80235e55bcfe5a9b6fdc009cf0 (diff) | |
download | ComputeLibrary-f55cca5f17da72004108f92047d3177b7cdb1a76.tar.gz |
Add LU_BOUNDED_RELU support for QSYMM16
Partially resolves MLCE-604
Change-Id: Id585ab19fe5cd8f61c07a0aae6faac6ba5545d6d
Signed-off-by: Pablo Marquez Tello <pablo.tello@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/7379
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/cpu/kernels/CpuActivationKernel.cpp')
-rw-r--r-- | src/cpu/kernels/CpuActivationKernel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cpu/kernels/CpuActivationKernel.cpp b/src/cpu/kernels/CpuActivationKernel.cpp index d5112b4ba9..74148071ae 100644 --- a/src/cpu/kernels/CpuActivationKernel.cpp +++ b/src/cpu/kernels/CpuActivationKernel.cpp @@ -109,11 +109,12 @@ static const std::array<ActivationLayerInfo::ActivationFunction, 7> qasymm8_acti ActivationLayerInfo::ActivationFunction::LEAKY_RELU, }; /* Supported activation in the 16-bit integer domain */ -static const std::array<ActivationLayerInfo::ActivationFunction, 3> qsymm16_activations = +static const std::array<ActivationLayerInfo::ActivationFunction, 4> qsymm16_activations = { ActivationLayerInfo::ActivationFunction::LOGISTIC, ActivationLayerInfo::ActivationFunction::TANH, - ActivationLayerInfo::ActivationFunction::HARD_SWISH + ActivationLayerInfo::ActivationFunction::HARD_SWISH, + ActivationLayerInfo::ActivationFunction::LU_BOUNDED_RELU }; Status validate_arguments(const ITensorInfo *src, const ITensorInfo *dst, const ActivationLayerInfo &activation_info) |