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
diff --git a/delegate/src/Fill.hpp b/delegate/src/Fill.hpp
index 23f332f..c6f94dd 100644
--- a/delegate/src/Fill.hpp
+++ b/delegate/src/Fill.hpp
@@ -96,18 +96,13 @@
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);