From 02bf80d4554cfc824a76008905921cb564bee999 Mon Sep 17 00:00:00 2001 From: Daniil Efremov Date: Wed, 22 Nov 2017 00:26:51 +0700 Subject: 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 Reviewed-by: Gian Marco Iodice Reviewed-by: Anthony Barbier --- utils/TypePrinter.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'utils') diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h index 863fcaf6d9..876f3fc36f 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -572,6 +572,24 @@ inline ::std::ostream &operator<<(::std::ostream &os, const InterpolationPolicy 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 @@ inline std::string to_string(const InterpolationPolicy &policy) 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) { -- cgit v1.2.1