telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
David Beck | ecb56cd | 2018-09-05 12:52:57 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 4 | // |
| 5 | #pragma once |
| 6 | |
| 7 | #include <armnn/Types.hpp> |
| 8 | |
| 9 | #include <array> |
| 10 | |
| 11 | namespace armnn |
| 12 | { |
| 13 | |
| 14 | enum class LayerType |
| 15 | { |
| 16 | FirstLayer, |
| 17 | Activation = FirstLayer, |
| 18 | Addition, |
| 19 | BatchNormalization, |
| 20 | Constant, |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 21 | ConvertFp16ToFp32, |
| 22 | ConvertFp32ToFp16, |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 23 | Convolution2d, |
| 24 | DepthwiseConvolution2d, |
Francis Murtagh | e7a86a4 | 2018-08-29 12:42:10 +0100 | [diff] [blame] | 25 | Division, |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 26 | FakeQuantization, |
| 27 | Floor, |
| 28 | FullyConnected, |
| 29 | Input, |
| 30 | L2Normalization, |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 31 | Lstm, |
narpra01 | 32b9046 | 2018-09-13 11:07:48 +0100 | [diff] [blame] | 32 | Mean, |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 33 | MemCopy, |
| 34 | Merger, |
| 35 | Multiplication, |
| 36 | Normalization, |
| 37 | Output, |
Mohamed Nour Abouelseoud | 5662c20 | 2018-09-24 13:30:09 +0100 | [diff] [blame^] | 38 | Pad, |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 39 | Permute, |
| 40 | Pooling2d, |
| 41 | Reshape, |
| 42 | ResizeBilinear, |
| 43 | Softmax, |
David Beck | c2044fe | 2018-09-05 15:00:38 +0100 | [diff] [blame] | 44 | Splitter, |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 45 | // Last layer goes here. |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 46 | LastLayer, |
David Beck | c2044fe | 2018-09-05 15:00:38 +0100 | [diff] [blame] | 47 | Subtraction = LastLayer, |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 48 | }; |
| 49 | |
| 50 | const char* GetLayerTypeAsCString(LayerType type); |
| 51 | |
| 52 | using Coordinates = std::array<unsigned int, MaxNumOfTensorDimensions>; |
| 53 | using Dimensions = std::array<unsigned int, MaxNumOfTensorDimensions>; |
| 54 | |
| 55 | } |