aboutsummaryrefslogtreecommitdiff
path: root/delegate/src/Fill.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'delegate/src/Fill.hpp')
-rw-r--r--delegate/src/Fill.hpp17
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);