diff options
author | Keith Davis <keith.davis@arm.com> | 2020-11-26 17:40:35 +0000 |
---|---|---|
committer | KeithARM <keith.davis@arm.com> | 2020-11-30 16:11:50 +0000 |
commit | 892fafe510077fac11610a9081fc10de09ffbef3 (patch) | |
tree | bcb331dbf71c3507b83316dd831f6bbd73323fd8 /delegate/src/DelegateUtils.hpp | |
parent | 34fa1bd7994af9abf52dbcc4aa808d0fa5f14aa3 (diff) | |
download | armnn-892fafe510077fac11610a9081fc10de09ffbef3.tar.gz |
IVGCVSW-5374 Provide Android Build for Delegate
* Fix Arm Android Compiler errors
Signed-off-by: Keith Davis <keith.davis@arm.com>
Change-Id: If5fae0fda08b6102eb46217564a096f87a3b6740
Diffstat (limited to 'delegate/src/DelegateUtils.hpp')
-rw-r--r-- | delegate/src/DelegateUtils.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/delegate/src/DelegateUtils.hpp b/delegate/src/DelegateUtils.hpp index 9f39a30727..990f210734 100644 --- a/delegate/src/DelegateUtils.hpp +++ b/delegate/src/DelegateUtils.hpp @@ -140,7 +140,8 @@ uint32_t NonNegative(int32_t value, int nodeIndex) { if (value < 0) { - throw armnn::Exception("TfLiteArmnnDelegate: Non-negative value in node " + nodeIndex); + throw armnn::Exception( + "TfLiteArmnnDelegate: Non-negative value in node " + std::to_string(static_cast<int>(nodeIndex))); } else { @@ -162,7 +163,7 @@ TfLiteStatus Connect(armnn::IConnectableLayer* layer, TfLiteNode* tfLiteNode, armnnDelegate::DelegateData& data) { - ARMNN_ASSERT(static_cast<unsigned int >(tfLiteNode->outputs->size) == layer->GetNumOutputSlots()); + ARMNN_ASSERT(static_cast<unsigned int>(tfLiteNode->outputs->size) == layer->GetNumOutputSlots()); // Connect the input slots for (unsigned int inputIndex = 0; inputIndex < layer->GetNumInputSlots(); ++inputIndex) @@ -475,7 +476,8 @@ armnn::ConstTensor CreateConstTensor(const TfLiteTensor* tfLiteTensor, { if (tfLiteTensor->allocation_type != kTfLiteMmapRo) { - throw armnn::Exception("TfLiteArmnnDelegate: Not constant allocation type: " + tfLiteTensor->allocation_type); + throw armnn::Exception( + "TfLiteArmnnDelegate: Not constant allocation type: " + std::to_string(tfLiteTensor->allocation_type)); } if (permutationVector.has_value() && permutationVector.value().GetSize() > 0 && permutationData != nullptr) @@ -524,6 +526,7 @@ TfLiteStatus ConnectConstant(armnn::IConnectableLayer* layer, armnnDelegate::DelegateData& data, unsigned int slotIndex) { + IgnoreUnused(layer); bool isSupported = false; FORWARD_LAYER_SUPPORT_FUNC(__func__, tfLiteContext, |