diff options
author | Jim Flynn <jim.flynn@arm.com> | 2019-12-12 22:09:51 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2019-12-12 22:12:48 +0000 |
commit | adfcb7bc6d7b875211c820ee58b46fd443ecb39d (patch) | |
tree | 63b49ab72534dfaa75ccecdad39aeafdbfba3ea3 /include | |
parent | 8ac5fc39b2556fd3ac0d0c43ebf55525bde97f58 (diff) | |
download | armnn-adfcb7bc6d7b875211c820ee58b46fd443ecb39d.tar.gz |
IVGCVSW-4268 Print all Descriptors on dot graph
Change-Id: I82a7dcffc3771efa8350e2e1e22cfb20969551f9
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/armnn/TypesUtils.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/armnn/TypesUtils.hpp b/include/armnn/TypesUtils.hpp index cb52471cd5..0ae9143685 100644 --- a/include/armnn/TypesUtils.hpp +++ b/include/armnn/TypesUtils.hpp @@ -147,6 +147,35 @@ constexpr const char* GetDataLayoutName(DataLayout dataLayout) } } +constexpr const char* GetNormalizationAlgorithmChannelAsCString(NormalizationAlgorithmChannel channel) +{ + switch (channel) + { + case NormalizationAlgorithmChannel::Across: return "Across"; + case NormalizationAlgorithmChannel::Within: return "Within"; + default: return "Unknown"; + } +} + +constexpr const char* GetNormalizationAlgorithmMethodAsCString(NormalizationAlgorithmMethod method) +{ + switch (method) + { + case NormalizationAlgorithmMethod::LocalBrightness: return "LocalBrightness"; + case NormalizationAlgorithmMethod::LocalContrast: return "LocalContrast"; + default: return "Unknown"; + } +} + +constexpr const char* GetResizeMethodAsCString(ResizeMethod method) +{ + switch (method) + { + case ResizeMethod::Bilinear: return "Bilinear"; + case ResizeMethod::NearestNeighbor: return "NearestNeighbour"; + default: return "Unknown"; + } +} template<typename T> struct IsHalfType |