diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2017-08-03 10:19:40 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:16:42 +0100 |
commit | d9769583c44d8ad79e7fcf662715b2460e96084b (patch) | |
tree | a8eec300e5381d89b1f933534bfe4647b87fcf68 /tests/TypePrinter.h | |
parent | fcdbc664108270d8b0861adf2a6f773923c396b4 (diff) | |
download | ComputeLibrary-d9769583c44d8ad79e7fcf662715b2460e96084b.tar.gz |
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>
Diffstat (limited to 'tests/TypePrinter.h')
-rw-r--r-- | tests/TypePrinter.h | 22 |
1 files changed, 22 insertions, 0 deletions
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; |