aboutsummaryrefslogtreecommitdiff
path: root/delegate/include
diff options
context:
space:
mode:
authorMatthew Sloyan <matthew.sloyan@arm.com>2021-10-12 10:26:30 +0100
committerMatthew Sloyan <matthew.sloyan@arm.com>2021-10-22 13:49:51 +0000
commit81ec994a3ebc8ad02c4a622846cf64b70e1182bd (patch)
tree83e961072eb7f75986f953e708fbd322ec90f511 /delegate/include
parent4692e11e5af29b97748a1585a092df6800a0a831 (diff)
downloadarmnn-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/include')
-rw-r--r--delegate/include/armnn_delegate.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/delegate/include/armnn_delegate.hpp b/delegate/include/armnn_delegate.hpp
index b213211ae9..8aaf255a9d 100644
--- a/delegate/include/armnn_delegate.hpp
+++ b/delegate/include/armnn_delegate.hpp
@@ -11,6 +11,15 @@
#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>
+
+#if TF_MAJOR_VERSION > 2 || (TF_MAJOR_VERSION == 2 && TF_MINOR_VERSION > 3)
+#define ARMNN_POST_TFLITE_2_3
+#endif
+
+#if TF_MAJOR_VERSION > 2 || (TF_MAJOR_VERSION == 2 && TF_MINOR_VERSION > 5)
+#define ARMNN_POST_TFLITE_2_5
+#endif
namespace armnnDelegate
{