blob: aebc721be3d6ce03552848570b1522f69daa488e [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa014fcda012018-03-09 14:13:49 +00004//
5
6#include "InternalTypes.hpp"
7
Narumol Prangnawaratac2770a2020-04-01 16:51:23 +01008#include <armnn/utility/Assert.hpp>
telsoa014fcda012018-03-09 14:13:49 +00009
10namespace armnn
11{
12
13char const* GetLayerTypeAsCString(LayerType type)
14{
15 switch (type)
16 {
Laurent Carliere886b512020-04-16 12:02:05 +010017#define X(name) case LayerType::name: return #name;
18 LIST_OF_LAYER_TYPE
19#undef X
telsoa014fcda012018-03-09 14:13:49 +000020 default:
Narumol Prangnawaratac2770a2020-04-01 16:51:23 +010021 ARMNN_ASSERT_MSG(false, "Unknown layer type");
telsoa014fcda012018-03-09 14:13:49 +000022 return "Unknown";
23 }
24}
25
telsoa014fcda012018-03-09 14:13:49 +000026}