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/Convolution.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/Convolution.hpp')
-rw-r--r-- | delegate/src/Convolution.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/delegate/src/Convolution.hpp b/delegate/src/Convolution.hpp index 2d9fdba122..153f44953c 100644 --- a/delegate/src/Convolution.hpp +++ b/delegate/src/Convolution.hpp @@ -568,16 +568,18 @@ TfLiteStatus VisitTransposeConv2dOperator(DelegateData& delegateData, outputSlot.SetTensorInfo(outputTensorInfo); // Connect - if (delegateData.m_OutputSlotForNode[tfLiteNode->inputs->data[2]] != nullptr) + if (delegateData.m_OutputSlotForNode[static_cast<unsigned int>(tfLiteNode->inputs->data[2])] != nullptr) { - delegateData.m_OutputSlotForNode[tfLiteNode->inputs->data[2]]->Connect(layer->GetInputSlot(0)); + delegateData.m_OutputSlotForNode[static_cast<unsigned int>(tfLiteNode->inputs->data[2])]-> + Connect(layer->GetInputSlot(0)); } // Prepare output slots for (unsigned int outputIndex = 0; outputIndex < layer->GetNumOutputSlots(); ++outputIndex) { armnn::IOutputSlot& outputSlot = layer->GetOutputSlot(outputIndex); - delegateData.m_OutputSlotForNode[tfLiteNode->outputs->data[outputIndex]] = &outputSlot; + delegateData.m_OutputSlotForNode[static_cast<unsigned int>(tfLiteNode->outputs->data[outputIndex])] = + &outputSlot; } return kTfLiteOk; } |