diff options
Diffstat (limited to 'tests/TypePrinter.h')
-rw-r--r-- | tests/TypePrinter.h | 21 |
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; |