From: Francis Murtagh Date: Wed, 13 Nov 2019 16:58:20 +0000 (+0000) Subject: IVGCVSW-3697 Add utility function to get ArgMinMaxFunction as string X-Git-Tag: submit/tizen/20200316.035456~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5b3b35288578154525b38ea708ca564530f0c5d;p=platform%2Fupstream%2Farmnn.git IVGCVSW-3697 Add utility function to get ArgMinMaxFunction as string * Allow logging of ConvertArgMinMax calls with specified Min/Max function which take place in HalPolicy Signed-off-by: Francis Murtagh Change-Id: Ic8c38106725023c864f7950dc9d0e2737485cfef --- diff --git a/include/armnn/TypesUtils.hpp b/include/armnn/TypesUtils.hpp index cdcbd3c..32967c6 100644 --- a/include/armnn/TypesUtils.hpp +++ b/include/armnn/TypesUtils.hpp @@ -42,6 +42,16 @@ constexpr char const* GetActivationFunctionAsCString(ActivationFunction activati } } +constexpr char const* GetArgMinMaxFunctionAsCString(ArgMinMaxFunction function) +{ + switch (function) + { + case ArgMinMaxFunction::Max: return "Max"; + case ArgMinMaxFunction::Min: return "Min"; + default: return "Unknown"; + } +} + constexpr char const* GetComparisonOperationAsCString(ComparisonOperation operation) { switch (operation)