IVGCVSW-4266 Dump float16 input/output tensors
Change-Id: Iff91ce6857a9f96a7af65f79883c1cbe59a15dd2
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
diff --git a/Utils.cpp b/Utils.cpp
index c01604c..6ee025e 100644
--- a/Utils.cpp
+++ b/Utils.cpp
@@ -6,6 +6,7 @@
#define LOG_TAG "ArmnnDriver"
#include "Utils.hpp"
+#include "Half.hpp"
#include <armnnUtils/Permute.hpp>
@@ -241,6 +242,11 @@
dumpElementFunction = &DumpTensorElement<int32_t>;
break;
}
+ case armnn::DataType::Float16:
+ {
+ dumpElementFunction = &DumpTensorElement<armnn::Half>;
+ break;
+ }
default:
{
dumpElementFunction = nullptr;