diff options
author | Mike Kelly <mike.kelly@arm.com> | 2020-04-27 09:55:40 +0100 |
---|---|---|
committer | mike.kelly <mike.kelly@arm.com> | 2020-04-27 10:19:33 +0000 |
commit | 0886ac4c403378ac0df85ab520a5db319be525a4 (patch) | |
tree | d21097f081c9879750f577b4760b7c26e83affb7 /src/backends/neon/NeonLayerSupport.cpp | |
parent | d7fcafaaaa917db458be362060e1b7855cad8083 (diff) | |
download | armnn-0886ac4c403378ac0df85ab520a5db319be525a4.tar.gz |
MLCE-190: Neon and CL Constant Workloads do not support newer DataTypes
* Added support for QASYMM8_SIGNED, QSYMM16, QSYMM8 and QSYMM8_PER_CHANNEL to Neon and CL backends
* Added unit tests to Neon, CL and Ref backends
Signed-off-by: Mike Kelly <mike.kelly@arm.com>
Change-Id: I4c726b6d86b4d75abedd130dcea372d1e82be5c2
Diffstat (limited to 'src/backends/neon/NeonLayerSupport.cpp')
-rw-r--r-- | src/backends/neon/NeonLayerSupport.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backends/neon/NeonLayerSupport.cpp b/src/backends/neon/NeonLayerSupport.cpp index 44e84fb974..5d59ab83aa 100644 --- a/src/backends/neon/NeonLayerSupport.cpp +++ b/src/backends/neon/NeonLayerSupport.cpp @@ -25,6 +25,7 @@ #include "workloads/NeonBatchNormalizationWorkload.hpp" #include "workloads/NeonBatchToSpaceNdWorkload.hpp" #include "workloads/NeonComparisonWorkload.hpp" +#include "workloads/NeonConstantWorkload.hpp" #include "workloads/NeonConvolution2dWorkload.hpp" #include "workloads/NeonDepthToSpaceWorkload.hpp" #include "workloads/NeonDepthwiseConvolutionWorkload.hpp" @@ -253,10 +254,9 @@ bool NeonLayerSupport::IsConcatSupported(const std::vector<const TensorInfo*> in bool NeonLayerSupport::IsConstantSupported(const TensorInfo& output, Optional<std::string&> reasonIfUnsupported) const { - return IsSupportedForDataTypeNeon(reasonIfUnsupported, - output.GetDataType(), - &TrueFunc<>, - &TrueFunc<>); + FORWARD_WORKLOAD_VALIDATE_FUNC(NeonConstantWorkloadValidate, + reasonIfUnsupported, + output); } bool NeonLayerSupport::IsConvertBf16ToFp32Supported(const TensorInfo& input, |