aboutsummaryrefslogtreecommitdiff
path: root/delegate/opaque/include/armnn_delegate.hpp
diff options
context:
space:
mode:
authorFrancis Murtagh <francis.murtagh@arm.com>2023-04-26 15:58:39 +0100
committerFrancis Murtagh <francis.murtagh@arm.com>2023-04-27 17:27:09 +0100
commit3a9e7bac89a120fddaf3bcf312105258a840dab1 (patch)
tree381db8bb43e9fdfe822bdfe2bf44395cf8296dd1 /delegate/opaque/include/armnn_delegate.hpp
parentcfbb2717b21fec803839c478dde8292263fa4f45 (diff)
downloadarmnn-3a9e7bac89a120fddaf3bcf312105258a840dab1.tar.gz
IVGCVSW-7584 IVGCVSW-7585 Implement Conv3d and TransposeConv2d operators for opaque delegate
* Add check for TF version so tests work with opaque and classic Signed-off-by: Francis Murtagh <francis.murtagh@arm.com> Change-Id: I3a6699150afabfc6200e1cd4d264a1f7c65c5f60
Diffstat (limited to 'delegate/opaque/include/armnn_delegate.hpp')
-rw-r--r--delegate/opaque/include/armnn_delegate.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/delegate/opaque/include/armnn_delegate.hpp b/delegate/opaque/include/armnn_delegate.hpp
index e08f466f09..653015a63c 100644
--- a/delegate/opaque/include/armnn_delegate.hpp
+++ b/delegate/opaque/include/armnn_delegate.hpp
@@ -7,9 +7,14 @@
#include <DelegateOptions.hpp>
+#include <tensorflow/core/public/version.h>
#include <tensorflow/lite/c/c_api_opaque.h>
#include <tensorflow/lite/core/experimental/acceleration/configuration/c/stable_delegate.h>
+#if TF_MAJOR_VERSION > 2 || (TF_MAJOR_VERSION == 2 && TF_MINOR_VERSION > 5)
+#define ARMNN_POST_TFLITE_2_5
+#endif
+
namespace armnnOpaqueDelegate
{