diff options
Diffstat (limited to 'utils/TypePrinter.h')
-rw-r--r-- | utils/TypePrinter.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h index 041ec1887a..c955584c76 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -535,7 +535,7 @@ inline ::std::ostream &operator<<(::std::ostream &os, const InterpolationPolicy return os; } -//FIXME: Check why this doesn't work and the TensorShape overload is needed +//FIXME: Check why this doesn't work and the TensorShape and Coordinates overload are needed template <typename T> inline std::string to_string(const Dimensions<T> &dimensions) { @@ -552,6 +552,14 @@ inline std::string to_string(const TensorShape &shape) return str.str(); } +/** Formatted output of the Coordinates type. */ +inline std::string to_string(const Coordinates &coord) +{ + std::stringstream str; + str << coord; + return str.str(); +} + /** Formatted output of the Rectangle type. */ inline ::std::ostream &operator<<(::std::ostream &os, const Rectangle &rect) { |