blob: 6884b93dd14ba4681810a7004775fcafdc77f551 [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
Jan Eilers1121c6b2021-02-19 09:38:03 +000062- Reduce
Ryan OSheaf3a43232020-02-12 16:15:27 +000063- Reshape
64- Resize
65- Slice
66- Softmax
67- SpaceToBatchNd
68- SpaceToDepth
69- Splitter
70- Stack
71- StandIn
72- StridedSlice
73- Subtraction
74- Switch
James Ward590f3f72020-12-02 10:20:48 +000075- Transpose
Ryan OSheaf3a43232020-02-12 16:15:27 +000076- TransposeConvolution2d
77
78More machine learning layers will be supported in future releases.
79
Jan Eilers1ed388f2021-01-28 14:45:09 +000080@subsection serializersupportdeprecated Deprecated layers
Ryan OSheaf3a43232020-02-12 16:15:27 +000081
82Some 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:
83
Ryan OSheaf3a43232020-02-12 16:15:27 +000084- Abs will deserialize as ElementwiseUnary
Jan Eilers1ed388f2021-01-28 14:45:09 +000085- Equal will deserialize as Comparison
86- Greater will deserialize as Comparison
87- Merger will deserialize as Concat
88- ResizeBilinear will deserialize as Resize
Ryan OSheaf3a43232020-02-12 16:15:27 +000089- Rsqrt will deserialize as ElementwiseUnary
90<br/><br/><br/><br/>
91
Jan Eilers1ed388f2021-01-28 14:45:09 +000092@page deserializer Deserializer
93@tableofcontents
Ryan OSheaf3a43232020-02-12 16:15:27 +000094
95The `armnnDeserializer` is a library for loading neural networks defined by Arm NN FlatBuffers files
96into the Arm NN runtime.
97
Jan Eilers1ed388f2021-01-28 14:45:09 +000098@section deserializersupport Supported Layers
Ryan OSheaf3a43232020-02-12 16:15:27 +000099
Jan Eilers1ed388f2021-01-28 14:45:09 +0000100This reference guide provides a list of layers which can be deserialized by the Arm NN SDK.
Ryan OSheaf3a43232020-02-12 16:15:27 +0000101
Jan Eilers1ed388f2021-01-28 14:45:09 +0000102@subsection deserializersupportfully Fully supported
Ryan OSheaf3a43232020-02-12 16:15:27 +0000103
104The Arm NN SDK Deserialize parser currently supports the following layers:
105
106- Abs
107- Activation
108- Addition
109- ArgMinMax
110- BatchToSpaceNd
111- BatchNormalization
112- Concat
113- Comparison
114- Constant
115- Convolution2d
116- DepthToSpace
117- DepthwiseConvolution2d
118- Dequantize
119- DetectionPostProcess
120- Division
James Ward590f3f72020-12-02 10:20:48 +0000121- ElementwiseUnary
122- Fill
Ryan OSheaf3a43232020-02-12 16:15:27 +0000123- Floor
124- FullyConnected
125- Gather
126- Input
127- InstanceNormalization
128- L2Normalization
James Ward590f3f72020-12-02 10:20:48 +0000129- Logical
Ryan OSheaf3a43232020-02-12 16:15:27 +0000130- LogSoftmax
131- Lstm
132- Maximum
133- Mean
134- Merge
135- Minimum
136- Multiplication
137- Normalization
138- Output
139- Pad
140- Permute
141- Pooling2d
142- Prelu
143- Quantize
Jan Eilers1ed388f2021-01-28 14:45:09 +0000144- QLstm
Ryan OSheaf3a43232020-02-12 16:15:27 +0000145- QuantizedLstm
James Ward590f3f72020-12-02 10:20:48 +0000146- Rank
Jan Eilers1121c6b2021-02-19 09:38:03 +0000147- Reduce
Ryan OSheaf3a43232020-02-12 16:15:27 +0000148- Reshape
James Ward590f3f72020-12-02 10:20:48 +0000149- Resize
Jan Eilers1ed388f2021-01-28 14:45:09 +0000150- ResizeBilinear
Ryan OSheaf3a43232020-02-12 16:15:27 +0000151- Slice
152- Softmax
153- SpaceToBatchNd
154- SpaceToDepth
155- Splitter
156- Stack
157- StandIn
158- StridedSlice
159- Subtraction
160- Switch
Jan Eilers1121c6b2021-02-19 09:38:03 +0000161- Transpose
Ryan OSheaf3a43232020-02-12 16:15:27 +0000162- TransposeConvolution2d
Ryan OSheaf3a43232020-02-12 16:15:27 +0000163
164More machine learning layers will be supported in future releases.
165
Jan Eilers1ed388f2021-01-28 14:45:09 +0000166@subsection deserializersupportdeprecated Deprecated layers
Ryan OSheaf3a43232020-02-12 16:15:27 +0000167
168Some 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:
169
170- Equal will deserialize as Comparison
171- Merger will deserialize as Concat
172- Greater will deserialize as Comparison
173- ResizeBilinear will deserialize as Resize
174
175**/
176}