COMPMID-: Implement L2NormalizationLayer.
Change-Id: I2223850b84826a87650729d287c57c22bcab7462
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/82767
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
diff --git a/tests/TypePrinter.h b/tests/TypePrinter.h
index 5f73135..020b559 100644
--- a/tests/TypePrinter.h
+++ b/tests/TypePrinter.h
@@ -198,6 +198,21 @@
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 @@
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;