From 70f8291a9f2dce249e81c04fcf490c300bf0bc22 Mon Sep 17 00:00:00 2001 From: Sanghoon Lee Date: Thu, 24 Aug 2017 14:21:24 +0100 Subject: COMPMID-492: Port ArithmeticAddition to new validation Change-Id: I134b5ed6581b42fac6be6311679473b67d1d5bf4 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/85972 Reviewed-by: Anthony Barbier Tested-by: Kaizen --- tests/TypePrinter.h | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'tests/TypePrinter.h') 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; -- cgit v1.2.1