aboutsummaryrefslogtreecommitdiff
path: root/tests/TypePrinter.h
diff options
context:
space:
mode:
authorSanghoon Lee <sanghoon.lee@arm.com>2017-08-24 14:21:24 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit70f8291a9f2dce249e81c04fcf490c300bf0bc22 (patch)
treeaf6cc7ad34e0f0feb54b28616da9ae445306ae04 /tests/TypePrinter.h
parent732f368d7f6916393b84804edcf00f2729378ab5 (diff)
downloadComputeLibrary-70f8291a9f2dce249e81c04fcf490c300bf0bc22.tar.gz
COMPMID-492: Port ArithmeticAddition to new validation
Change-Id: I134b5ed6581b42fac6be6311679473b67d1d5bf4 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/85972 Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'tests/TypePrinter.h')
-rw-r--r--tests/TypePrinter.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/tests/TypePrinter.h b/tests/TypePrinter.h
index bbccaadc6d..f276f45db0 100644
--- a/tests/TypePrinter.h
+++ b/tests/TypePrinter.h
@@ -219,6 +219,13 @@ inline ::std::ostream &operator<<(::std::ostream &os, const ConvertPolicy &polic
return os;
}
+inline std::string to_string(const ConvertPolicy &policy)
+{
+ std::stringstream str;
+ str << policy;
+ return str.str();
+}
+
/** Formatted output of the Reduction Operations. */
inline ::std::ostream &operator<<(::std::ostream &os, const ReductionOperation &op)
{
@@ -234,6 +241,13 @@ inline ::std::ostream &operator<<(::std::ostream &os, const ReductionOperation &
return os;
}
+inline std::string to_string(const ReductionOperation &op)
+{
+ std::stringstream str;
+ str << op;
+ return str.str();
+}
+
/** Formatted output of the activation function type. */
inline ::std::ostream &operator<<(::std::ostream &os, const ActivationLayerInfo::ActivationFunction &act_function)
{
@@ -279,13 +293,6 @@ inline ::std::ostream &operator<<(::std::ostream &os, const ActivationLayerInfo:
return os;
}
-inline std::string to_string(const ReductionOperation &op)
-{
- std::stringstream str;
- str << op;
- return str.str();
-}
-
inline std::string to_string(const ActivationLayerInfo::ActivationFunction &function)
{
std::stringstream str;