diff options
author | Sadik Armagan <sadik.armagan@arm.com> | 2021-05-05 15:03:50 +0100 |
---|---|---|
committer | Kevin May <kevin.may@arm.com> | 2021-05-06 07:49:22 +0000 |
commit | f7ac72c85c90c61be14fff16c9c2ff638fa32c40 (patch) | |
tree | ac1455193dcbb3226aa612a3fdf87f913c0cd4fd /delegate/src/Gather.hpp | |
parent | a18c70843189cbabf72f4e502bf35b5df2d359bf (diff) | |
download | armnn-f7ac72c85c90c61be14fff16c9c2ff638fa32c40.tar.gz |
IVGCVSW-5418 'ExecuteNetwork test for MobileBERT'
* Refactored the code for checking constant inputs.
* Added a unit test for ADD operator with constant input.
Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
Change-Id: Ie7207e5a1ce77ea305552859de32a66e07c68a6f
Diffstat (limited to 'delegate/src/Gather.hpp')
-rw-r--r-- | delegate/src/Gather.hpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/delegate/src/Gather.hpp b/delegate/src/Gather.hpp index 9ed0fe15c1..634373a341 100644 --- a/delegate/src/Gather.hpp +++ b/delegate/src/Gather.hpp @@ -87,9 +87,17 @@ TfLiteStatus VisitGatherOperator(DelegateData& delegateData, armnn::IConnectableLayer* layer = delegateData.m_Network->AddGatherLayer(gatherDescriptor); ARMNN_ASSERT(layer != nullptr); - layer->GetOutputSlot(0).SetTensorInfo(outputTensorInfo); + auto inputsTensorsProcess = ProcessInputs(layer, + delegateData, + tfLiteContext, + tfLiteNode); + if (inputsTensorsProcess == kTfLiteError) + { + return inputsTensorsProcess; + } + Connect(layer, tfLiteNode, delegateData); return kTfLiteOk; |