diff options
author | Matthew Sloyan <matthew.sloyan@arm.com> | 2021-10-12 10:26:30 +0100 |
---|---|---|
committer | Matthew Sloyan <matthew.sloyan@arm.com> | 2021-10-22 13:49:51 +0000 |
commit | 81ec994a3ebc8ad02c4a622846cf64b70e1182bd (patch) | |
tree | 83e961072eb7f75986f953e708fbd322ec90f511 /delegate/src/DelegateUtils.hpp | |
parent | 4692e11e5af29b97748a1585a092df6800a0a831 (diff) | |
download | armnn-81ec994a3ebc8ad02c4a622846cf64b70e1182bd.tar.gz |
IVGCVSW-6166 Add Support for Conv3d to TFLite Delegate
* Conv3d is only correctly supported for external delegates
from TF v2.6, as there was a breaking bug in v2.5.
Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com>
Change-Id: Ib7941307f4c7b0d3dbb7deaa5a90aceb63c1162f
Diffstat (limited to 'delegate/src/DelegateUtils.hpp')
-rw-r--r-- | delegate/src/DelegateUtils.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/delegate/src/DelegateUtils.hpp b/delegate/src/DelegateUtils.hpp index e408dba138..45174458aa 100644 --- a/delegate/src/DelegateUtils.hpp +++ b/delegate/src/DelegateUtils.hpp @@ -5,6 +5,8 @@ #pragma once +#include <armnn_delegate.hpp> + #include <armnn/ArmNN.hpp> #include <armnn/BackendHelper.hpp> #include <armnn/utility/Assert.hpp> @@ -16,7 +18,6 @@ #include <tensorflow/lite/c/builtin_op_data.h> #include <tensorflow/lite/c/common.h> #include <tensorflow/lite/minimal_logging.h> -#include <tensorflow/lite/version.h> #include "tensorflow/lite/kernels/kernel_util.h" @@ -296,7 +297,7 @@ TfLiteStatus FusedActivation(TfLiteContext* tfLiteContext, break; } // The name of kTfLiteActRelu1 changed after TF Lite v2.3 -#if TF_MAJOR_VERSION > 2 || (TF_MAJOR_VERSION == 2 && TF_MINOR_VERSION > 3) +#if defined(ARMNN_POST_TFLITE_2_3) case kTfLiteActReluN1To1: #else case kTfLiteActRelu1: |