From 5d7b0a314b3e354a6cbcf15f5dd78b50f1e02774 Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Mon, 18 Oct 2021 13:07:49 +0100 Subject: Add ConstTensorsAsInput support for Conv3d * Constant weights and biases are now stored as Constant layers. * Updated Serializer, Deserializer and unit tests to reflect this. * Updated TfLiteParser. * Updated Ref backend to handle constant weights and bias as inputs rather than reading from member variables. * Added Conv3d EndToEnd test. * Added NCDHW DataLayout and unit tests. Signed-off-by: Matthew Sloyan Change-Id: I10cdd354ca5f1c748730f92ffdb36bf810f83c8e --- src/armnn/Descriptors.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/armnn/Descriptors.cpp') diff --git a/src/armnn/Descriptors.cpp b/src/armnn/Descriptors.cpp index ab68097247..ef55ee7bb5 100644 --- a/src/armnn/Descriptors.cpp +++ b/src/armnn/Descriptors.cpp @@ -441,4 +441,15 @@ uint32_t FullyConnectedDescriptor::GetNumInputs() const return numInputs; } +uint32_t Convolution3dDescriptor::GetNumInputs() const +{ + // Return 2 otherwise check if bias is enabled + unsigned int numInputs = 2; + if (m_BiasEnabled) + { + numInputs = 3; + } + return numInputs; +} + } -- cgit v1.2.1