diff options
author | Colm Donelan <colm.donelan@arm.com> | 2024-02-01 15:00:43 +0000 |
---|---|---|
committer | Colm Donelan <colm.donelan@arm.com> | 2024-02-21 09:36:37 +0000 |
commit | b4ef16334900af33bf4321f28c90f62bf32238cd (patch) | |
tree | 0d8299e44df109d95ce21bf56b9441019e6c7403 /src/backends/backendsCommon/LayerSupportRules.hpp | |
parent | 04a0da655f89e1c024cf16f31ab30176364c9362 (diff) | |
download | armnn-b4ef16334900af33bf4321f28c90f62bf32238cd.tar.gz |
IVGCVSW-7854 Remove/rewrite asserts in the backends.
* Identify usages of ARMNN_ASSERT that should be proper exceptions.
* Change ARMNN_ASSERT in Doctests to CHECK.
* Verify any remaining assertions are reasonable.
Signed-off-by: Colm Donelan <colm.donelan@arm.com>
Change-Id: Ifd1f2a5a4bb60135e8654305035ec70e09c4dc2d
Diffstat (limited to 'src/backends/backendsCommon/LayerSupportRules.hpp')
-rw-r--r-- | src/backends/backendsCommon/LayerSupportRules.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backends/backendsCommon/LayerSupportRules.hpp b/src/backends/backendsCommon/LayerSupportRules.hpp index a83fd62867..1bd825b774 100644 --- a/src/backends/backendsCommon/LayerSupportRules.hpp +++ b/src/backends/backendsCommon/LayerSupportRules.hpp @@ -1,11 +1,10 @@ // -// Copyright © 2017 Arm Ltd. All rights reserved. +// Copyright © 2017, 2024 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once -#include <armnn/utility/Assert.hpp> #include <algorithm> namespace armnn @@ -29,7 +28,7 @@ inline armnn::Optional<armnn::DataType> GetBiasTypeFromWeightsType(armnn::Option case armnn::DataType::QSymmS16: return armnn::DataType::Signed32; default: - ARMNN_ASSERT_MSG(false, "GetBiasTypeFromWeightsType(): Unsupported data type."); + throw InvalidArgumentException("GetBiasTypeFromWeightsType(): Unsupported data type."); } return armnn::EmptyOptional(); } |