telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1 | // |
2 | // Copyright © 2017 Arm Ltd. All rights reserved. | ||||
David Beck | ecb56cd | 2018-09-05 12:52:57 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 4 | // |
5 | |||||
6 | #include "InternalTypes.hpp" | ||||
7 | |||||
Narumol Prangnawarat | ac2770a | 2020-04-01 16:51:23 +0100 | [diff] [blame] | 8 | #include <armnn/utility/Assert.hpp> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 9 | |
10 | namespace armnn | ||||
11 | { | ||||
12 | |||||
13 | char const* GetLayerTypeAsCString(LayerType type) | ||||
14 | { | ||||
15 | switch (type) | ||||
16 | { | ||||
Laurent Carlier | e886b51 | 2020-04-16 12:02:05 +0100 | [diff] [blame] | 17 | #define X(name) case LayerType::name: return #name; |
18 | LIST_OF_LAYER_TYPE | ||||
19 | #undef X | ||||
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 20 | default: |
Narumol Prangnawarat | ac2770a | 2020-04-01 16:51:23 +0100 | [diff] [blame] | 21 | ARMNN_ASSERT_MSG(false, "Unknown layer type"); |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 22 | return "Unknown"; |
23 | } | ||||
24 | } | ||||
25 | |||||
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 26 | } |