blob: 047cb5dc8d6d7447a9bb9c7020da28ada707f284 [file] [log] [blame]
Jan Eilers31a7c892021-01-29 14:18:13 +00001/// Copyright (c) 2021 ARM Limited and Contributors. All rights reserved.
Ryan OSheaf3a43232020-02-12 16:15:27 +00002///
3/// SPDX-License-Identifier: MIT
4///
Ryan OSheaf3a43232020-02-12 16:15:27 +00005
6namespace armnn
7{
8/**
Jan Eilers1ed388f2021-01-28 14:45:09 +00009@page serializer Serializer
Ryan OSheaf3a43232020-02-12 16:15:27 +000010@tableofcontents
11
Ryan OSheaf3a43232020-02-12 16:15:27 +000012The `armnnSerializer` is a library for serializing an Arm NN network to a stream.
13
Jan Eilers1ed388f2021-01-28 14:45:09 +000014@section serializersupport Supported Layers
Ryan OSheaf3a43232020-02-12 16:15:27 +000015
Jan Eilers1ed388f2021-01-28 14:45:09 +000016This reference guide provides a list of layers which can be serialized by the Arm NN SDK.
Ryan OSheaf3a43232020-02-12 16:15:27 +000017
Jan Eilers1ed388f2021-01-28 14:45:09 +000018@subsection serializersupportflully Fully supported
Ryan OSheaf3a43232020-02-12 16:15:27 +000019
20The Arm NN SDK Serializer currently supports the following layers:
21
22- Activation
23- Addition
24- ArgMinMax
25- BatchToSpaceNd
26- BatchNormalization
27- Comparison
28- Concat
29- Constant
30- Convolution2d
31- DepthToSpace
32- DepthwiseConvolution2d
33- Dequantize
34- DetectionPostProcess
35- Division
36- ElementwiseUnary
Jan Eilers1ed388f2021-01-28 14:45:09 +000037- Fill
Ryan OSheaf3a43232020-02-12 16:15:27 +000038- Floor
39- FullyConnected
40- Gather
41- Input
42- InstanceNormalization
43- L2Normalization
James Ward590f3f72020-12-02 10:20:48 +000044- Logical
Ryan OSheaf3a43232020-02-12 16:15:27 +000045- LogSoftmax
46- Lstm
47- Maximum
48- Mean
49- Merge
50- Minimum
51- Multiplication
52- Normalization
53- Output
54- Pad
55- Permute
56- Pooling2d
57- Prelu
James Ward590f3f72020-12-02 10:20:48 +000058- QLstm
Ryan OSheaf3a43232020-02-12 16:15:27 +000059- Quantize
60- QuantizedLstm
James Ward590f3f72020-12-02 10:20:48 +000061- Rank
Ryan OSheaf3a43232020-02-12 16:15:27 +000062- Reshape
63- Resize
64- Slice
65- Softmax
66- SpaceToBatchNd
67- SpaceToDepth
68- Splitter
69- Stack
70- StandIn
71- StridedSlice
72- Subtraction
73- Switch
James Ward590f3f72020-12-02 10:20:48 +000074- Transpose
Ryan OSheaf3a43232020-02-12 16:15:27 +000075- TransposeConvolution2d
76
77More machine learning layers will be supported in future releases.
78
Jan Eilers1ed388f2021-01-28 14:45:09 +000079@subsection serializersupportdeprecated Deprecated layers
Ryan OSheaf3a43232020-02-12 16:15:27 +000080
81Some layers have been deprecated and replaced by others layers. In order to maintain backward compatibility, serializations of these deprecated layers will deserialize to the layers that have replaced them, as follows:
82
Ryan OSheaf3a43232020-02-12 16:15:27 +000083- Abs will deserialize as ElementwiseUnary
Jan Eilers1ed388f2021-01-28 14:45:09 +000084- Equal will deserialize as Comparison
85- Greater will deserialize as Comparison
86- Merger will deserialize as Concat
87- ResizeBilinear will deserialize as Resize
Ryan OSheaf3a43232020-02-12 16:15:27 +000088- Rsqrt will deserialize as ElementwiseUnary
89<br/><br/><br/><br/>
90
Jan Eilers1ed388f2021-01-28 14:45:09 +000091@page deserializer Deserializer
92@tableofcontents
Ryan OSheaf3a43232020-02-12 16:15:27 +000093
94The `armnnDeserializer` is a library for loading neural networks defined by Arm NN FlatBuffers files
95into the Arm NN runtime.
96
Jan Eilers1ed388f2021-01-28 14:45:09 +000097@section deserializersupport Supported Layers
Ryan OSheaf3a43232020-02-12 16:15:27 +000098
Jan Eilers1ed388f2021-01-28 14:45:09 +000099This reference guide provides a list of layers which can be deserialized by the Arm NN SDK.
Ryan OSheaf3a43232020-02-12 16:15:27 +0000100
Jan Eilers1ed388f2021-01-28 14:45:09 +0000101@subsection deserializersupportfully Fully supported
Ryan OSheaf3a43232020-02-12 16:15:27 +0000102
103The Arm NN SDK Deserialize parser currently supports the following layers:
104
105- Abs
106- Activation
107- Addition
108- ArgMinMax
109- BatchToSpaceNd
110- BatchNormalization
111- Concat
112- Comparison
113- Constant
114- Convolution2d
115- DepthToSpace
116- DepthwiseConvolution2d
117- Dequantize
118- DetectionPostProcess
119- Division
James Ward590f3f72020-12-02 10:20:48 +0000120- ElementwiseUnary
121- Fill
Ryan OSheaf3a43232020-02-12 16:15:27 +0000122- Floor
123- FullyConnected
124- Gather
125- Input
126- InstanceNormalization
127- L2Normalization
James Ward590f3f72020-12-02 10:20:48 +0000128- Logical
Ryan OSheaf3a43232020-02-12 16:15:27 +0000129- LogSoftmax
130- Lstm
131- Maximum
132- Mean
133- Merge
134- Minimum
135- Multiplication
136- Normalization
137- Output
138- Pad
139- Permute
140- Pooling2d
141- Prelu
142- Quantize
Jan Eilers1ed388f2021-01-28 14:45:09 +0000143- QLstm
Ryan OSheaf3a43232020-02-12 16:15:27 +0000144- QuantizedLstm
James Ward590f3f72020-12-02 10:20:48 +0000145- Rank
Ryan OSheaf3a43232020-02-12 16:15:27 +0000146- Reshape
James Ward590f3f72020-12-02 10:20:48 +0000147- Resize
Jan Eilers1ed388f2021-01-28 14:45:09 +0000148- ResizeBilinear
Ryan OSheaf3a43232020-02-12 16:15:27 +0000149- Rsqrt
150- Slice
151- Softmax
152- SpaceToBatchNd
153- SpaceToDepth
154- Splitter
155- Stack
156- StandIn
157- StridedSlice
158- Subtraction
159- Switch
160- TransposeConvolution2d
Ryan OSheaf3a43232020-02-12 16:15:27 +0000161
162More machine learning layers will be supported in future releases.
163
Jan Eilers1ed388f2021-01-28 14:45:09 +0000164@subsection deserializersupportdeprecated Deprecated layers
Ryan OSheaf3a43232020-02-12 16:15:27 +0000165
166Some layers have been deprecated and replaced by others layers. In order to maintain backward compatibility, serializations of these deprecated layers will deserialize to the layers that have replaced them, as follows:
167
168- Equal will deserialize as Comparison
169- Merger will deserialize as Concat
170- Greater will deserialize as Comparison
171- ResizeBilinear will deserialize as Resize
172
173**/
174}