From f0a6dec75832604d5ab18242dc216852821a8279 Mon Sep 17 00:00:00 2001 From: Sadik Armagan Date: Thu, 25 Mar 2021 07:46:55 +0000 Subject: IVGCVSW-5736 and IVGCVSW-5743 'NonConstWeights: Update front-end and TfLiteDelegate support for FullyConnected Operator' * Added front-end support for non-const weights for FULLY_CONNECTED operator * Added FULLY_CONNECTED end-to-end test * Updated FULLY_CONNECTED operator support in TfLite Arm NN Delegate for non-const weights * Updated the version numbers Signed-off-by: Sadik Armagan Change-Id: Iffa5b9aa9297aca4c02d923cce4636c88ac21faa --- src/armnn/Descriptors.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/armnn/Descriptors.cpp') diff --git a/src/armnn/Descriptors.cpp b/src/armnn/Descriptors.cpp index 881023e968..706992ccb0 100644 --- a/src/armnn/Descriptors.cpp +++ b/src/armnn/Descriptors.cpp @@ -425,4 +425,21 @@ int StridedSliceDescriptor::GetStopForAxis(const TensorShape& inputShape, } +uint32_t FullyConnectedDescriptor::GetNumViews() const +{ + // Return 1 with constant weights, otherwise check if bias is enabled + uint32_t numInputs = 1; + if (!m_ConstantWeights) + { + // non-const weights + numInputs = 2; + if (m_BiasEnabled) + { + // non-const bias + numInputs = 3; + } + } + return numInputs; +} + } -- cgit v1.2.1