20.11
InternalTypes.cpp
Go to the documentation of this file.
1
//
2
// Copyright © 2017 Arm Ltd. All rights reserved.
3
// SPDX-License-Identifier: MIT
4
//
5
6
#include "
InternalTypes.hpp
"
7
8
#include <
armnn/utility/Assert.hpp
>
9
10
namespace
armnn
11
{
12
13
char
const
*
GetLayerTypeAsCString
(
LayerType
type)
14
{
15
switch
(type)
16
{
17
#define X(name) case LayerType::name: return #name;
18
LIST_OF_LAYER_TYPE
19
#undef X
20
default
:
21
ARMNN_ASSERT_MSG
(
false
,
"Unknown layer type"
);
22
return
"Unknown"
;
23
}
24
}
25
26
}
LIST_OF_LAYER_TYPE
#define LIST_OF_LAYER_TYPE
This list uses X macro technique.
Definition:
InternalTypes.hpp:14
armnn
Copyright (c) 2020 ARM Limited.
Definition:
00_introduction.dox:25
InternalTypes.hpp
ARMNN_ASSERT_MSG
#define ARMNN_ASSERT_MSG(COND, MSG)
Definition:
Assert.hpp:15
armnn::GetLayerTypeAsCString
char const * GetLayerTypeAsCString(LayerType type)
Definition:
InternalTypes.cpp:13
Assert.hpp
armnn::LayerType
LayerType
Definition:
InternalTypes.hpp:86
src
armnn
InternalTypes.cpp
Generated on Thu Nov 26 2020 11:04:21 for ArmNN by
1.8.13