blob: 81b4ad0e9b6ee64f19ad00b5b56178e5699d4880 [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
Narumol Prangnawarata0162e12021-07-23 14:47:49 +010079- UnidirectionalSequenceLstm
Ryan OSheaf3a43232020-02-12 16:15:27 +000080
81More machine learning layers will be supported in future releases.
82
Jan Eilers1ed388f2021-01-28 14:45:09 +000083@subsection serializersupportdeprecated Deprecated layers
Ryan OSheaf3a43232020-02-12 16:15:27 +000084
85Some 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:
86
Ryan OSheaf3a43232020-02-12 16:15:27 +000087- Abs will deserialize as ElementwiseUnary
Jan Eilers1ed388f2021-01-28 14:45:09 +000088- Equal will deserialize as Comparison
89- Greater will deserialize as Comparison
90- Merger will deserialize as Concat
91- ResizeBilinear will deserialize as Resize
Ryan OSheaf3a43232020-02-12 16:15:27 +000092- Rsqrt will deserialize as ElementwiseUnary
93<br/><br/><br/><br/>
94
Jan Eilers1ed388f2021-01-28 14:45:09 +000095@page deserializer Deserializer
96@tableofcontents
Ryan OSheaf3a43232020-02-12 16:15:27 +000097
98The `armnnDeserializer` is a library for loading neural networks defined by Arm NN FlatBuffers files
99into the Arm NN runtime.
100
Jan Eilers1ed388f2021-01-28 14:45:09 +0000101@section deserializersupport Supported Layers
Ryan OSheaf3a43232020-02-12 16:15:27 +0000102
Jan Eilers1ed388f2021-01-28 14:45:09 +0000103This reference guide provides a list of layers which can be deserialized by the Arm NN SDK.
Ryan OSheaf3a43232020-02-12 16:15:27 +0000104
Jan Eilers1ed388f2021-01-28 14:45:09 +0000105@subsection deserializersupportfully Fully supported
Ryan OSheaf3a43232020-02-12 16:15:27 +0000106
107The Arm NN SDK Deserialize parser currently supports the following layers:
108
109- Abs
110- Activation
111- Addition
112- ArgMinMax
113- BatchToSpaceNd
114- BatchNormalization
mathad01b392e982021-04-07 12:07:30 +0100115- Cast
Ryan OSheaf3a43232020-02-12 16:15:27 +0000116- Concat
117- Comparison
118- Constant
119- Convolution2d
120- DepthToSpace
121- DepthwiseConvolution2d
122- Dequantize
123- DetectionPostProcess
124- Division
James Ward590f3f72020-12-02 10:20:48 +0000125- ElementwiseUnary
126- Fill
Ryan OSheaf3a43232020-02-12 16:15:27 +0000127- Floor
128- FullyConnected
129- Gather
130- Input
131- InstanceNormalization
132- L2Normalization
James Ward590f3f72020-12-02 10:20:48 +0000133- Logical
Ryan OSheaf3a43232020-02-12 16:15:27 +0000134- LogSoftmax
135- Lstm
136- Maximum
137- Mean
138- Merge
139- Minimum
140- Multiplication
141- Normalization
142- Output
143- Pad
144- Permute
145- Pooling2d
146- Prelu
147- Quantize
Jan Eilers1ed388f2021-01-28 14:45:09 +0000148- QLstm
Ryan OSheaf3a43232020-02-12 16:15:27 +0000149- QuantizedLstm
James Ward590f3f72020-12-02 10:20:48 +0000150- Rank
Jan Eilers1121c6b2021-02-19 09:38:03 +0000151- Reduce
Ryan OSheaf3a43232020-02-12 16:15:27 +0000152- Reshape
James Ward590f3f72020-12-02 10:20:48 +0000153- Resize
Jan Eilers1ed388f2021-01-28 14:45:09 +0000154- ResizeBilinear
Ryan OSheaf3a43232020-02-12 16:15:27 +0000155- Slice
156- Softmax
157- SpaceToBatchNd
158- SpaceToDepth
159- Splitter
160- Stack
161- StandIn
162- StridedSlice
163- Subtraction
164- Switch
Jan Eilers1121c6b2021-02-19 09:38:03 +0000165- Transpose
Ryan OSheaf3a43232020-02-12 16:15:27 +0000166- TransposeConvolution2d
Narumol Prangnawarata0162e12021-07-23 14:47:49 +0100167- UnidirectionalSequenceLstm
Ryan OSheaf3a43232020-02-12 16:15:27 +0000168
169More machine learning layers will be supported in future releases.
170
Jan Eilers1ed388f2021-01-28 14:45:09 +0000171@subsection deserializersupportdeprecated Deprecated layers
Ryan OSheaf3a43232020-02-12 16:15:27 +0000172
173Some 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:
174
175- Equal will deserialize as Comparison
176- Merger will deserialize as Concat
177- Greater will deserialize as Comparison
178- ResizeBilinear will deserialize as Resize
179
180**/
181}