From 4d52775062995550b780040d7b79b827264b2175 Mon Sep 17 00:00:00 2001 From: Aron Virginas-Tar Date: Tue, 29 Oct 2019 13:58:06 +0000 Subject: Add GetResizeMethodAsCString() function to TypesUtils.hpp Signed-off-by: Aron Virginas-Tar Change-Id: Id00eeb7f5e833226aee5e03f8711ab2ae5a84e30 --- include/armnn/TypesUtils.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/armnn/TypesUtils.hpp b/include/armnn/TypesUtils.hpp index 0d50323fb4..3225230a25 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) -- cgit v1.2.1