COMPMID-661: Fix scale border issue (#38)
Change-Id: If1dcca724e5e5f5ab363ffc16b0ef8c943e0b657
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/110105
Tested-by: BSG Visual Compute Jenkins server to access repositories on http://mpd-gerrit.cambridge.arm.com <bsgcomp@arm.com>
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h
index 863fcaf..876f3fc 100644
--- a/utils/TypePrinter.h
+++ b/utils/TypePrinter.h
@@ -572,6 +572,24 @@
return os;
}
+/** Formatted output of the SamplingPolicy type. */
+inline ::std::ostream &operator<<(::std::ostream &os, const SamplingPolicy &policy)
+{
+ switch(policy)
+ {
+ case SamplingPolicy::CENTER:
+ os << "CENTER";
+ break;
+ case SamplingPolicy::TOP_LEFT:
+ os << "TOP_LEFT";
+ break;
+ default:
+ ARM_COMPUTE_ERROR("NOT_SUPPORTED!");
+ }
+
+ return os;
+}
+
/** Formatted output of the TensorInfo type. */
inline std::string to_string(const TensorInfo &info)
{
@@ -663,6 +681,13 @@
return str.str();
}
+inline std::string to_string(const SamplingPolicy &policy)
+{
+ std::stringstream str;
+ str << policy;
+ return str.str();
+}
+
/** Formatted output of the ConversionPolicy type. */
inline ::std::ostream &operator<<(::std::ostream &os, const ConvertPolicy &policy)
{