diff options
author | Daniil Efremov <daniil.efremov@xored.com> | 2017-11-22 00:26:51 +0700 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:41:04 +0000 |
commit | 02bf80d4554cfc824a76008905921cb564bee999 (patch) | |
tree | b86ebbed4d330af69c1107c10ce5e765705e88dd /utils/TypePrinter.h | |
parent | 6194145681232bf59e0455434f15aba42956145b (diff) | |
download | ComputeLibrary-02bf80d4554cfc824a76008905921cb564bee999.tar.gz |
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>
Diffstat (limited to 'utils/TypePrinter.h')
-rw-r--r-- | utils/TypePrinter.h | 25 |
1 files changed, 25 insertions, 0 deletions
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) { |