IVGCVSW-5612 Fix tiny_wav2letter_relu_fixed_int8 delegate output
* fix delegate perchannel quantization
* change delegate to check reshape options before inputs
* Add int8 "qsymms8" option to ExecuteNetwork
* Add option to run ExecuteNetwork on tflite w/o delegate
!referencetests:301301
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: If3e12599b17aff1199d7ab0a55e1c901e480083d
diff --git a/tests/InferenceTest.inl b/tests/InferenceTest.inl
index 3d6dae3..79700d9 100644
--- a/tests/InferenceTest.inl
+++ b/tests/InferenceTest.inl
@@ -26,7 +26,8 @@
namespace test
{
-using TContainer = mapbox::util::variant<std::vector<float>, std::vector<int>, std::vector<unsigned char>>;
+using TContainer =
+ mapbox::util::variant<std::vector<float>, std::vector<int>, std::vector<unsigned char>, std::vector<int8_t>>;
template <typename TTestCaseDatabase, typename TModel>
ClassifierTestCase<TTestCaseDatabase, TModel>::ClassifierTestCase(
@@ -66,6 +67,14 @@
});
}
+ void operator()(const std::vector<int8_t>& values)
+ {
+ SortPredictions(values, [](int8_t value)
+ {
+ return value;
+ });
+ }
+
void operator()(const std::vector<uint8_t>& values)
{
auto& scale = m_Scale;