IVGCVSW-5654 Fix failing float 16 delegate tests on android
authorFinn Williams <Finn.Williams@arm.com>
Wed, 17 Feb 2021 18:12:39 +0000 (18:12 +0000)
committerKeith Davis <keith.davis@arm.com>
Thu, 18 Feb 2021 12:38:51 +0000 (12:38 +0000)
 * add template specialization declaration to header to resolve clang issue

Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: Id8104d6feda19ed3f5f0cb018d719b1677772d9b

delegate/src/test/TestUtils.hpp

index ad7600d..d14e1ed 100644 (file)
@@ -30,6 +30,9 @@ void FillInput(std::unique_ptr<tflite::Interpreter>& interpreter, int inputIndex
     }
 }
 
+template <>
+void FillInput(std::unique_ptr<tflite::Interpreter>& interpreter, int inputIndex, std::vector<Half>& inputValues);
+
 /// Can be used to compare bool data coming from a tflite interpreter
 /// Boolean types get converted to a bit representation in a vector. vector.data() returns a void pointer
 /// instead of a pointer to bool. Therefore a special function to compare to vector of bool is required