From 81ec994a3ebc8ad02c4a622846cf64b70e1182bd Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Tue, 12 Oct 2021 10:26:30 +0100 Subject: 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 Change-Id: Ib7941307f4c7b0d3dbb7deaa5a90aceb63c1162f --- delegate/src/DelegateUtils.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'delegate/src/DelegateUtils.hpp') 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 + #include #include #include @@ -16,7 +18,6 @@ #include #include #include -#include #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: -- cgit v1.2.1