aboutsummaryrefslogtreecommitdiff
path: root/src/armnnTfLiteParser/test
diff options
context:
space:
mode:
authorMatthew Sloyan <matthew.sloyan@arm.com>2021-10-07 11:48:58 +0100
committerMatthew Sloyan <matthew.sloyan@arm.com>2021-10-07 12:59:17 +0100
commit4d217c02fe2c0a32ff9da69d8fe375a75173c0f3 (patch)
treec8c7b34da1d6f1ce3a1cc9866203c108568e411c /src/armnnTfLiteParser/test
parenteb70c91a4180b1b437040b00296ff0065de6f051 (diff)
downloadarmnn-4d217c02fe2c0a32ff9da69d8fe375a75173c0f3.tar.gz
IVGCVSW-6461 Building Arm NN failed after adding Conv3d to TFLiteparser
* Add hash define to Conv3d for backwards compatibility when compiling with TF 2.3.1 Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: I70eec3b26430240852938af34b065b32bab91ebe
Diffstat (limited to 'src/armnnTfLiteParser/test')
-rw-r--r--src/armnnTfLiteParser/test/Conv3D.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/armnnTfLiteParser/test/Conv3D.cpp b/src/armnnTfLiteParser/test/Conv3D.cpp
index 32cd6fe3f4..dd55aea211 100644
--- a/src/armnnTfLiteParser/test/Conv3D.cpp
+++ b/src/armnnTfLiteParser/test/Conv3D.cpp
@@ -6,6 +6,8 @@
#include "ParserFlatbuffersFixture.hpp"
#include <sstream>
+// Conv3D support was added in TF 2.5, so for backwards compatibility a hash define is needed.
+#if defined(ARMNN_POST_TFLITE_2_3)
TEST_SUITE("TensorflowLiteParser_Conv3D")
{
struct SimpleConv3DFixture : public ParserFlatbuffersFixture
@@ -284,3 +286,4 @@ TEST_CASE_FIXTURE(Relu6Conv3DWithBiasesFixture, "ParseConv3DAndRelu6WithBias")
}
}
+#endif