From: Aron Virginas-Tar Date: Tue, 29 Oct 2019 13:58:06 +0000 (+0000) Subject: Add GetResizeMethodAsCString() function to TypesUtils.hpp X-Git-Tag: submit/tizen/20200316.035456~103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d52775062995550b780040d7b79b827264b2175;p=platform%2Fupstream%2Farmnn.git Add GetResizeMethodAsCString() function to TypesUtils.hpp Signed-off-by: Aron Virginas-Tar Change-Id: Id00eeb7f5e833226aee5e03f8711ab2ae5a84e30 --- diff --git a/include/armnn/TypesUtils.hpp b/include/armnn/TypesUtils.hpp index 0d50323..3225230 100644 --- a/include/armnn/TypesUtils.hpp +++ b/include/armnn/TypesUtils.hpp @@ -67,6 +67,16 @@ constexpr char const* GetPoolingAlgorithmAsCString(PoolingAlgorithm pooling) } } +constexpr char const* GetResizeMethodAsCString(ResizeMethod resizeMethod) +{ + switch (resizeMethod) + { + case ResizeMethod::Bilinear: return "Bilinear"; + case ResizeMethod::NearestNeighbor: return "NearestNeighbor"; + default: return "Unknown"; + } +} + constexpr char const* GetOutputShapeRoundingAsCString(OutputShapeRounding rounding) { switch (rounding)