blob: f4996db73e29bbcf777ae9927e6f0c8b34df8729 [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,
FrancisMurtagh20995952018-12-17 12:11:36 +000028 Equal,
telsoa014fcda012018-03-09 14:13:49 +000029 FakeQuantization,
30 Floor,
31 FullyConnected,
Matteo Martincigh59a950c2018-12-13 12:48:25 +000032 Greater,
telsoa014fcda012018-03-09 14:13:49 +000033 Input,
34 L2Normalization,
telsoa01c577f2c2018-08-31 09:22:23 +010035 Lstm,
Nattapat Chaimanowong5a4304a2018-11-28 10:44:37 +000036 Maximum,
narpra0132b90462018-09-13 11:07:48 +010037 Mean,
telsoa014fcda012018-03-09 14:13:49 +000038 MemCopy,
39 Merger,
kevmay0190539692018-11-29 08:40:19 +000040 Minimum,
telsoa014fcda012018-03-09 14:13:49 +000041 Multiplication,
42 Normalization,
43 Output,
Mohamed Nour Abouelseoud5662c202018-09-24 13:30:09 +010044 Pad,
telsoa014fcda012018-03-09 14:13:49 +000045 Permute,
46 Pooling2d,
47 Reshape,
48 ResizeBilinear,
Mohamed Nour Abouelseouda1d3c6a2018-12-27 12:39:16 +000049 Rsqrt,
telsoa014fcda012018-03-09 14:13:49 +000050 Softmax,
Nattapat Chaimanowong207ef9a2018-11-02 10:57:25 +000051 SpaceToBatchNd,
David Beckc2044fe2018-09-05 15:00:38 +010052 Splitter,
Conor Kennedy430b5d82018-11-14 15:28:28 +000053 StridedSlice,
telsoa01c577f2c2018-08-31 09:22:23 +010054 // Last layer goes here.
telsoa014fcda012018-03-09 14:13:49 +000055 LastLayer,
David Beckc2044fe2018-09-05 15:00:38 +010056 Subtraction = LastLayer,
telsoa014fcda012018-03-09 14:13:49 +000057};
58
59const char* GetLayerTypeAsCString(LayerType type);
60
61using Coordinates = std::array<unsigned int, MaxNumOfTensorDimensions>;
62using Dimensions = std::array<unsigned int, MaxNumOfTensorDimensions>;
63
64}