blob: 27a1359f689ffbd61c57168858bb51b3377f298f [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#pragma once
6
7#include <armnn/Types.hpp>
8
9#include <array>
10
11namespace armnn
12{
13
14enum class LayerType
15{
16 FirstLayer,
17 Activation = FirstLayer,
18 Addition,
19 BatchNormalization,
Éanna Ó Catháin4e1e1362018-11-12 11:36:34 +000020 BatchToSpaceNd,
telsoa014fcda012018-03-09 14:13:49 +000021 Constant,
telsoa01c577f2c2018-08-31 09:22:23 +010022 ConvertFp16ToFp32,
23 ConvertFp32ToFp16,
telsoa014fcda012018-03-09 14:13:49 +000024 Convolution2d,
Nattapat Chaimanowonga9a1cf12018-12-03 16:06:49 +000025 Debug,
telsoa014fcda012018-03-09 14:13:49 +000026 DepthwiseConvolution2d,
Francis Murtaghe7a86a42018-08-29 12:42:10 +010027 Division,
telsoa014fcda012018-03-09 14:13:49 +000028 FakeQuantization,
29 Floor,
30 FullyConnected,
Matteo Martincigh59a950c2018-12-13 12:48:25 +000031 Greater,
telsoa014fcda012018-03-09 14:13:49 +000032 Input,
33 L2Normalization,
telsoa01c577f2c2018-08-31 09:22:23 +010034 Lstm,
Nattapat Chaimanowong5a4304a2018-11-28 10:44:37 +000035 Maximum,
narpra0132b90462018-09-13 11:07:48 +010036 Mean,
telsoa014fcda012018-03-09 14:13:49 +000037 MemCopy,
38 Merger,
kevmay0190539692018-11-29 08:40:19 +000039 Minimum,
telsoa014fcda012018-03-09 14:13:49 +000040 Multiplication,
41 Normalization,
42 Output,
Mohamed Nour Abouelseoud5662c202018-09-24 13:30:09 +010043 Pad,
telsoa014fcda012018-03-09 14:13:49 +000044 Permute,
45 Pooling2d,
46 Reshape,
47 ResizeBilinear,
48 Softmax,
Nattapat Chaimanowong207ef9a2018-11-02 10:57:25 +000049 SpaceToBatchNd,
David Beckc2044fe2018-09-05 15:00:38 +010050 Splitter,
Conor Kennedy430b5d82018-11-14 15:28:28 +000051 StridedSlice,
telsoa01c577f2c2018-08-31 09:22:23 +010052 // Last layer goes here.
telsoa014fcda012018-03-09 14:13:49 +000053 LastLayer,
David Beckc2044fe2018-09-05 15:00:38 +010054 Subtraction = LastLayer,
telsoa014fcda012018-03-09 14:13:49 +000055};
56
57const char* GetLayerTypeAsCString(LayerType type);
58
59using Coordinates = std::array<unsigned int, MaxNumOfTensorDimensions>;
60using Dimensions = std::array<unsigned int, MaxNumOfTensorDimensions>;
61
62}