diff options
author | nikraj01 <nikhil.raj@arm.com> | 2019-05-29 16:46:50 +0100 |
---|---|---|
committer | Nikhil Raj Arm <nikhil.raj@arm.com> | 2019-05-29 16:12:48 +0000 |
commit | 248683fef73807b49e5a58fbd0428900b7e9cfb9 (patch) | |
tree | 398e0b4c567f36bf19c5192ff8c5a52ed30d942d /src/backends/reference/RefLayerSupport.cpp | |
parent | aa949514c2fd72b61c9546c64da364e5ad0ff8b5 (diff) | |
download | armnn-248683fef73807b49e5a58fbd0428900b7e9cfb9.tar.gz |
IVGCVSW-3173 Extend reference softmax workload to support qsymm16
Change-Id: I9ad5a04368a4587588d733ac36ad157f79b6c432
Signed-off-by: nikraj01 <nikhil.raj@arm.com>
Diffstat (limited to 'src/backends/reference/RefLayerSupport.cpp')
-rw-r--r-- | src/backends/reference/RefLayerSupport.cpp | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/backends/reference/RefLayerSupport.cpp b/src/backends/reference/RefLayerSupport.cpp index a9cddfd1bb..e4bc9bf584 100644 --- a/src/backends/reference/RefLayerSupport.cpp +++ b/src/backends/reference/RefLayerSupport.cpp @@ -1060,11 +1060,24 @@ bool RefLayerSupport::IsSoftmaxSupported(const TensorInfo& input, Optional<std::string&> reasonIfUnsupported) const { ignore_unused(output); - ignore_unused(descriptor); - return IsSupportedForDataTypeRef(reasonIfUnsupported, - input.GetDataType(), - &TrueFunc<>, - &TrueFunc<>); + bool supported = true; + std::array<DataType,3> supportedTypes = + { + DataType::Float32, + DataType::QuantisedAsymm8, + DataType::QuantisedSymm16 + }; + + supported &= CheckSupportRule(TypeAnyOf(input, supportedTypes), reasonIfUnsupported, + "Reference concatenation: output type not supported"); + + supported &= CheckSupportRule(TypeAnyOf(output, supportedTypes), reasonIfUnsupported, + "Reference concatenation: input type not supported"); + + supported &= CheckSupportRule(TypesAreEqual(input, output), reasonIfUnsupported, + "Reference concatenation: input type not supported"); + + return supported; } bool RefLayerSupport::IsSpaceToBatchNdSupported(const TensorInfo& input, |