blob: 1a612e9426c4c982e7cd7f6bf63148ab3b8a19bb [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,
20 Constant,
telsoa01c577f2c2018-08-31 09:22:23 +010021 ConvertFp16ToFp32,
22 ConvertFp32ToFp16,
telsoa014fcda012018-03-09 14:13:49 +000023 Convolution2d,
24 DepthwiseConvolution2d,
Francis Murtaghe7a86a42018-08-29 12:42:10 +010025 Division,
telsoa014fcda012018-03-09 14:13:49 +000026 FakeQuantization,
27 Floor,
28 FullyConnected,
29 Input,
30 L2Normalization,
telsoa01c577f2c2018-08-31 09:22:23 +010031 Lstm,
narpra0132b90462018-09-13 11:07:48 +010032 Mean,
telsoa014fcda012018-03-09 14:13:49 +000033 MemCopy,
34 Merger,
35 Multiplication,
36 Normalization,
37 Output,
Mohamed Nour Abouelseoud5662c202018-09-24 13:30:09 +010038 Pad,
telsoa014fcda012018-03-09 14:13:49 +000039 Permute,
40 Pooling2d,
41 Reshape,
42 ResizeBilinear,
43 Softmax,
David Beckc2044fe2018-09-05 15:00:38 +010044 Splitter,
telsoa01c577f2c2018-08-31 09:22:23 +010045 // Last layer goes here.
telsoa014fcda012018-03-09 14:13:49 +000046 LastLayer,
David Beckc2044fe2018-09-05 15:00:38 +010047 Subtraction = LastLayer,
telsoa014fcda012018-03-09 14:13:49 +000048};
49
50const char* GetLayerTypeAsCString(LayerType type);
51
52using Coordinates = std::array<unsigned int, MaxNumOfTensorDimensions>;
53using Dimensions = std::array<unsigned int, MaxNumOfTensorDimensions>;
54
55}