blob: 4a8380287b028285ef684b3b25cc96ffbd882642 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
//
// Copyright © 2017,2024 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "InternalTypes.hpp"
#include <armnn/utility/Assert.hpp>
namespace armnn
{
char const* GetLayerTypeAsCString(LayerType type)
{
switch (type)
{
#define X(name) case LayerType::name: return #name;
LIST_OF_LAYER_TYPE
#undef X
default:
throw armnn::InvalidArgumentException("Unknown layer type");
return "Unknown";
}
}
}
|