blob: 811af1cfb56b3ec92010e9889a12ef71d111b1e3 [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
mathad01b392e982021-04-07 12:07:30 +010027- Cast
Ryan OSheaf3a43232020-02-12 16:15:27 +000028- Comparison
29- Concat
30- Constant
31- Convolution2d
32- DepthToSpace
33- DepthwiseConvolution2d
34- Dequantize
35- DetectionPostProcess
36- Division
37- ElementwiseUnary
Jan Eilers1ed388f2021-01-28 14:45:09 +000038- Fill
Ryan OSheaf3a43232020-02-12 16:15:27 +000039- Floor
40- FullyConnected
41- Gather
42- Input
43- InstanceNormalization
44- L2Normalization
James Ward590f3f72020-12-02 10:20:48 +000045- Logical
Ryan OSheaf3a43232020-02-12 16:15:27 +000046- LogSoftmax
47- Lstm
48- Maximum
49- Mean
50- Merge
51- Minimum
52- Multiplication
53- Normalization
54- Output
55- Pad
56- Permute
57- Pooling2d
58- Prelu
James Ward590f3f72020-12-02 10:20:48 +000059- QLstm
Ryan OSheaf3a43232020-02-12 16:15:27 +000060- Quantize
61- QuantizedLstm
James Ward590f3f72020-12-02 10:20:48 +000062- Rank
Jan Eilers1121c6b2021-02-19 09:38:03 +000063- Reduce
Ryan OSheaf3a43232020-02-12 16:15:27 +000064- Reshape
65- Resize
Keith Davis3ae3f972021-05-21 16:33:48 +010066- Shape
Ryan OSheaf3a43232020-02-12 16:15:27 +000067- Slice
68- Softmax
69- SpaceToBatchNd
70- SpaceToDepth
71- Splitter
72- Stack
73- StandIn
74- StridedSlice
75- Subtraction
76- Switch
James Ward590f3f72020-12-02 10:20:48 +000077- Transpose
Ryan OSheaf3a43232020-02-12 16:15:27 +000078- TransposeConvolution2d
79
80More machine learning layers will be supported in future releases.
81
Jan Eilers1ed388f2021-01-28 14:45:09 +000082@subsection serializersupportdeprecated Deprecated layers
Ryan OSheaf3a43232020-02-12 16:15:27 +000083
84Some 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:
85
Ryan OSheaf3a43232020-02-12 16:15:27 +000086- Abs will deserialize as ElementwiseUnary
Jan Eilers1ed388f2021-01-28 14:45:09 +000087- Equal will deserialize as Comparison
88- Greater will deserialize as Comparison
89- Merger will deserialize as Concat
90- ResizeBilinear will deserialize as Resize
Ryan OSheaf3a43232020-02-12 16:15:27 +000091- Rsqrt will deserialize as ElementwiseUnary
92<br/><br/><br/><br/>
93
Jan Eilers1ed388f2021-01-28 14:45:09 +000094@page deserializer Deserializer
95@tableofcontents
Ryan OSheaf3a43232020-02-12 16:15:27 +000096
97The `armnnDeserializer` is a library for loading neural networks defined by Arm NN FlatBuffers files
98into the Arm NN runtime.
99
Jan Eilers1ed388f2021-01-28 14:45:09 +0000100@section deserializersupport Supported Layers
Ryan OSheaf3a43232020-02-12 16:15:27 +0000101
Jan Eilers1ed388f2021-01-28 14:45:09 +0000102This reference guide provides a list of layers which can be deserialized by the Arm NN SDK.
Ryan OSheaf3a43232020-02-12 16:15:27 +0000103
Jan Eilers1ed388f2021-01-28 14:45:09 +0000104@subsection deserializersupportfully Fully supported
Ryan OSheaf3a43232020-02-12 16:15:27 +0000105
106The Arm NN SDK Deserialize parser currently supports the following layers:
107
108- Abs
109- Activation
110- Addition
111- ArgMinMax
112- BatchToSpaceNd
113- BatchNormalization
mathad01b392e982021-04-07 12:07:30 +0100114- Cast
Ryan OSheaf3a43232020-02-12 16:15:27 +0000115- Concat
116- Comparison
117- Constant
118- Convolution2d
119- DepthToSpace
120- DepthwiseConvolution2d
121- Dequantize
122- DetectionPostProcess
123- Division
James Ward590f3f72020-12-02 10:20:48 +0000124- ElementwiseUnary
125- Fill
Ryan OSheaf3a43232020-02-12 16:15:27 +0000126- Floor
127- FullyConnected
128- Gather
129- Input
130- InstanceNormalization
131- L2Normalization
James Ward590f3f72020-12-02 10:20:48 +0000132- Logical
Ryan OSheaf3a43232020-02-12 16:15:27 +0000133- LogSoftmax
134- Lstm
135- Maximum
136- Mean
137- Merge
138- Minimum
139- Multiplication
140- Normalization
141- Output
142- Pad
143- Permute
144- Pooling2d
145- Prelu
146- Quantize
Jan Eilers1ed388f2021-01-28 14:45:09 +0000147- QLstm
Ryan OSheaf3a43232020-02-12 16:15:27 +0000148- QuantizedLstm
James Ward590f3f72020-12-02 10:20:48 +0000149- Rank
Jan Eilers1121c6b2021-02-19 09:38:03 +0000150- Reduce
Ryan OSheaf3a43232020-02-12 16:15:27 +0000151- Reshape
James Ward590f3f72020-12-02 10:20:48 +0000152- Resize
Jan Eilers1ed388f2021-01-28 14:45:09 +0000153- ResizeBilinear
Ryan OSheaf3a43232020-02-12 16:15:27 +0000154- Slice
155- Softmax
156- SpaceToBatchNd
157- SpaceToDepth
158- Splitter
159- Stack
160- StandIn
161- StridedSlice
162- Subtraction
163- Switch
Jan Eilers1121c6b2021-02-19 09:38:03 +0000164- Transpose
Ryan OSheaf3a43232020-02-12 16:15:27 +0000165- TransposeConvolution2d
Ryan OSheaf3a43232020-02-12 16:15:27 +0000166
167More machine learning layers will be supported in future releases.
168
Jan Eilers1ed388f2021-01-28 14:45:09 +0000169@subsection deserializersupportdeprecated Deprecated layers
Ryan OSheaf3a43232020-02-12 16:15:27 +0000170
171Some 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:
172
173- Equal will deserialize as Comparison
174- Merger will deserialize as Concat
175- Greater will deserialize as Comparison
176- ResizeBilinear will deserialize as Resize
177
178**/
179}