diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2017-10-30 14:13:50 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 3faea25fe0bcb9f72bfe3da185085ed634d1b162 (patch) | |
tree | a53a50bf9e889b9d913dc47d5375a382aed57e58 /utils/TypePrinter.h | |
parent | b5908c257d554009a00de3aaa95b3721000ed185 (diff) | |
download | ComputeLibrary-3faea25fe0bcb9f72bfe3da185085ed634d1b162.tar.gz |
COMPMID-617: Adds validation to CLPoolingLayer
Change-Id: Ied405a9c0e9746598d03ac6a944ad87e9b6494eb
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93680
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'utils/TypePrinter.h')
-rw-r--r-- | utils/TypePrinter.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h index 4fd3c0c027..d956d9ca01 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -27,6 +27,7 @@ #include "arm_compute/core/Dimensions.h" #include "arm_compute/core/Error.h" #include "arm_compute/core/Strides.h" +#include "arm_compute/core/TensorInfo.h" #include "arm_compute/core/Types.h" #include "tests/Types.h" @@ -553,6 +554,17 @@ inline ::std::ostream &operator<<(::std::ostream &os, const InterpolationPolicy return os; } +/** Formatted output of the TensorInfo type. */ +inline std::string to_string(const TensorInfo &info) +{ + std::stringstream str; + str << "{Shape=" << info.tensor_shape() << "," + << "Type=" << info.data_type() << "," + << "Channels=" << info.num_channels() << "," + << "FixedPointPos=" << info.fixed_point_position() << "}"; + return str.str(); +} + //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) |