aboutsummaryrefslogtreecommitdiff
path: root/tests/TypePrinter.h
diff options
context:
space:
mode:
authorMoritz Pflanzer <moritz.pflanzer@arm.com>2017-07-18 14:02:10 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:16:42 +0100
commitc87fbf8106bea3e0dc7232afb91df6a9ddb25040 (patch)
tree3332784654916be3ed7a477247f4622a25aea784 /tests/TypePrinter.h
parentdb33d6a2713c9fb8b6ec8c63caff07f2e9414124 (diff)
downloadComputeLibrary-c87fbf8106bea3e0dc7232afb91df6a9ddb25040.tar.gz
COMPMID-415: Simplify test names
Change-Id: I247a0788e0492cd5e70294b96f5b34a55ff794e5 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/80913 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.h31
1 files changed, 11 insertions, 20 deletions
diff --git a/tests/TypePrinter.h b/tests/TypePrinter.h
index 75499065eb..ed7933cacc 100644
--- a/tests/TypePrinter.h
+++ b/tests/TypePrinter.h
@@ -38,20 +38,16 @@ namespace arm_compute
template <typename T>
inline ::std::ostream &operator<<(::std::ostream &os, const Dimensions<T> &dimensions)
{
- os << "(";
-
if(dimensions.num_dimensions() > 0)
{
os << dimensions[0];
for(unsigned int d = 1; d < dimensions.num_dimensions(); ++d)
{
- os << ", " << dimensions[d];
+ os << "x" << dimensions[d];
}
}
- os << ")";
-
return os;
}
@@ -74,11 +70,8 @@ inline std::string to_string(const TensorShape &shape)
/** Formatted output of the Rectangle type. */
inline ::std::ostream &operator<<(::std::ostream &os, const Rectangle &rect)
{
- os << "(";
- os << rect.height << ", " << rect.width;
- os << ", ";
- os << rect.x << ", " << rect.y;
- os << ")";
+ os << rect.width << "x" << rect.height;
+ os << "+" << rect.x << "+" << rect.y;
return os;
}
@@ -86,11 +79,9 @@ inline ::std::ostream &operator<<(::std::ostream &os, const Rectangle &rect)
/** Formatted output of the PadStridInfo type. */
inline ::std::ostream &operator<<(::std::ostream &os, const PadStrideInfo &pad_stride_info)
{
- os << "(";
- os << pad_stride_info.stride().first << ", " << pad_stride_info.stride().second;
- os << ", ";
- os << pad_stride_info.pad().first << ", " << pad_stride_info.pad().second;
- os << ")";
+ os << pad_stride_info.stride().first << "," << pad_stride_info.stride().second;
+ os << ";";
+ os << pad_stride_info.pad().first << "," << pad_stride_info.pad().second;
return os;
}
@@ -98,7 +89,7 @@ inline ::std::ostream &operator<<(::std::ostream &os, const PadStrideInfo &pad_s
/** Formatted output of the ROIPoolingInfo type. */
inline ::std::ostream &operator<<(::std::ostream &os, const ROIPoolingLayerInfo &pool_info)
{
- os << pool_info.pooled_width() << ", " << pool_info.pooled_height() << ", " << pool_info.spatial_scale();
+ os << pool_info.pooled_width() << "x" << pool_info.pooled_height() << "~" << pool_info.spatial_scale();
return os;
}
@@ -509,10 +500,10 @@ inline ::std::ostream &operator<<(::std::ostream &os, const Channel &channel)
/** Formatted output of the BorderSize type. */
inline ::std::ostream &operator<<(::std::ostream &os, const BorderSize &border)
{
- os << "{" << border.top << ", "
- << border.right << ", "
- << border.bottom << ", "
- << border.left << "}";
+ os << border.top << ","
+ << border.right << ","
+ << border.bottom << ","
+ << border.left;
return os;
}