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/Fill.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/Fill.hpp')
-rw-r--r-- | delegate/src/Fill.hpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/delegate/src/Fill.hpp b/delegate/src/Fill.hpp index 23f332fed0..c6f94dd83c 100644 --- a/delegate/src/Fill.hpp +++ b/delegate/src/Fill.hpp @@ -96,18 +96,13 @@ TfLiteStatus VisitFillOperator(DelegateData& delegateData, armnn::IOutputSlot& outputSlot = layer->GetOutputSlot(0); outputSlot.SetTensorInfo(outputTensorInfo); - if(tflite::IsConstantTensor(&tfLiteInputTensor)) + auto inputsTensorsProcess = ProcessInputs(layer, + delegateData, + tfLiteContext, + tfLiteNode); + if (inputsTensorsProcess == kTfLiteError) { - auto status = ConnectConstant(layer, - inputTensorInfo, - tfLiteContext, - tfLiteInputTensor, - delegateData, - tfLiteNode->inputs->data[0]); - if (status == kTfLiteError) - { - return status; - } + return inputsTensorsProcess; } return Connect(layer, tfLiteNode, delegateData); |