aboutsummaryrefslogtreecommitdiff
path: root/delegate/src/Quantization.hpp
diff options
context:
space:
mode:
authorSadik Armagan <sadik.armagan@arm.com>2021-05-05 15:03:50 +0100
committerKevin May <kevin.may@arm.com>2021-05-06 07:49:22 +0000
commitf7ac72c85c90c61be14fff16c9c2ff638fa32c40 (patch)
treeac1455193dcbb3226aa612a3fdf87f913c0cd4fd /delegate/src/Quantization.hpp
parenta18c70843189cbabf72f4e502bf35b5df2d359bf (diff)
downloadarmnn-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/Quantization.hpp')
-rw-r--r--delegate/src/Quantization.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/delegate/src/Quantization.hpp b/delegate/src/Quantization.hpp
index 565f1e37c0..3c274c6ff5 100644
--- a/delegate/src/Quantization.hpp
+++ b/delegate/src/Quantization.hpp
@@ -73,6 +73,15 @@ TfLiteStatus VisitDequantizeOperator(DelegateData& delegateData,
armnn::IOutputSlot& outputSlot = dequantizeLayer->GetOutputSlot(0);
outputSlot.SetTensorInfo(outputTensorInfo);
+ auto inputsTensorsProcess = ProcessInputs(dequantizeLayer,
+ delegateData,
+ tfLiteContext,
+ tfLiteNode);
+ if (inputsTensorsProcess == kTfLiteError)
+ {
+ return inputsTensorsProcess;
+ }
+
return Connect(dequantizeLayer, tfLiteNode, delegateData);
}