diff options
author | Matthew Sloyan <matthew.sloyan@arm.com> | 2022-10-10 12:43:20 +0100 |
---|---|---|
committer | Matthew Sloyan <matthew.sloyan@arm.com> | 2022-10-27 12:03:26 +0100 |
commit | da824cc0211beb69b6e94a8b1e5c76e8c4eda3a1 (patch) | |
tree | e13f9077fa9f4f8267555b2666d010d219fb6f3c /src/backends/tosaReference/TosaRefLayerSupport.cpp | |
parent | d646b5504351ab3c3ab8152553465c8e36947e5b (diff) | |
download | armnn-da824cc0211beb69b6e94a8b1e5c76e8c4eda3a1.tar.gz |
IVGCVSW-7273 Fix TOSA Serialization Library integration
* half.hpp is now required as an include for numpy_utils.h
* DType_FLOAT was changed to DType_FP32.
* DType_FP16 support has been added to ArmNNToDType utility function.
Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com>
Change-Id: Ib25be9a5abfbd9db2a90b3e42d592259a6df0e01
Diffstat (limited to 'src/backends/tosaReference/TosaRefLayerSupport.cpp')
-rw-r--r-- | src/backends/tosaReference/TosaRefLayerSupport.cpp | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/backends/tosaReference/TosaRefLayerSupport.cpp b/src/backends/tosaReference/TosaRefLayerSupport.cpp index 80e982f1c4..18530bb535 100644 --- a/src/backends/tosaReference/TosaRefLayerSupport.cpp +++ b/src/backends/tosaReference/TosaRefLayerSupport.cpp @@ -29,25 +29,26 @@ static bool IsTosaLayerSupported(TosaSerializationOperator* op, bool supported = true; std::array<Attribute, 1> supportedAttributes = - { - Attribute_NONE - }; + { + Attribute_NONE + }; // Check Attribute from operator (GetAttribute) supported &= CheckSupportRule(TosaOperatorAttributeOfAny(op, supportedAttributes), reasonIfUnsupported, std::string("TOSA Reference addition: operator has an unsupported attribute.").c_str()); - std::array<DType, 8> supportedTypes = - { - DType_BOOL, - DType_UINT8, - DType_INT4, - DType_INT8, - DType_INT16, - DType_INT32, - DType_FLOAT, - DType_UINT16 - }; + std::array<DType, 9> supportedTypes = + { + DType_BOOL, + DType_UINT8, + DType_UINT16, + DType_INT4, + DType_INT8, + DType_INT16, + DType_INT32, + DType_FP16, + DType_FP32 + }; for (auto tensor : inputs) { |