From d9769583c44d8ad79e7fcf662715b2460e96084b Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Thu, 3 Aug 2017 10:19:40 +0100 Subject: COMPMID-: Implement L2NormalizationLayer. Change-Id: I2223850b84826a87650729d287c57c22bcab7462 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/82767 Tested-by: Kaizen Reviewed-by: Anthony Barbier --- tests/TypePrinter.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'tests/TypePrinter.h') diff --git a/tests/TypePrinter.h b/tests/TypePrinter.h index 5f7313552e..020b559c6f 100644 --- a/tests/TypePrinter.h +++ b/tests/TypePrinter.h @@ -198,6 +198,21 @@ inline ::std::ostream &operator<<(::std::ostream &os, const ConvertPolicy &polic return os; } +/** Formatted output of the Reduction Operations. */ +inline ::std::ostream &operator<<(::std::ostream &os, const ReductionOperation &op) +{ + switch(op) + { + case ReductionOperation::SUM_SQUARE: + os << "SUM_SQUARE"; + break; + default: + ARM_COMPUTE_ERROR("NOT_SUPPORTED!"); + } + + return os; +} + /** Formatted output of the activation function type. */ inline ::std::ostream &operator<<(::std::ostream &os, const ActivationLayerInfo::ActivationFunction &act_function) { @@ -240,6 +255,13 @@ 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