blob: ab821b8d66e73180cedb78906732dc4c441e8912 [file] [log] [blame]
Tracy Narine944fb502023-07-04 15:08:57 +01001/// Copyright (c) 2021-2023 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
Samuel Yapa04f4a12022-08-19 11:14:38 +010025- BatchMatMul
Ryan OSheaf3a43232020-02-12 16:15:27 +000026- BatchToSpaceNd
27- BatchNormalization
mathad01b392e982021-04-07 12:07:30 +010028- Cast
Simon Obute51f67772021-09-03 15:50:13 +010029- ChannelShuffle
Ryan OSheaf3a43232020-02-12 16:15:27 +000030- Comparison
31- Concat
32- Constant
33- Convolution2d
Matthew Sloyanb63a3112021-09-08 13:05:51 +010034- Convolution3d
Ryan OSheaf3a43232020-02-12 16:15:27 +000035- DepthToSpace
36- DepthwiseConvolution2d
37- Dequantize
38- DetectionPostProcess
39- Division
40- ElementwiseUnary
Jan Eilers1ed388f2021-01-28 14:45:09 +000041- Fill
Ryan OSheaf3a43232020-02-12 16:15:27 +000042- Floor
43- FullyConnected
44- Gather
Teresa Charlin6966bfa2022-04-25 17:14:50 +010045- GatherNd
Ryan OSheaf3a43232020-02-12 16:15:27 +000046- Input
47- InstanceNormalization
48- L2Normalization
James Ward590f3f72020-12-02 10:20:48 +000049- Logical
Ryan OSheaf3a43232020-02-12 16:15:27 +000050- LogSoftmax
51- Lstm
52- Maximum
53- Mean
54- Merge
55- Minimum
56- Multiplication
57- Normalization
58- Output
Matthew Sloyan2e5d0b22021-10-21 14:05:31 +010059- Pad (Constant, Symmetric, Reflect)
Ryan OSheaf3a43232020-02-12 16:15:27 +000060- Permute
61- Pooling2d
Tamas Nyirid998a1c2021-11-05 14:55:33 +000062- Pooling3d
Ryan OSheaf3a43232020-02-12 16:15:27 +000063- Prelu
James Ward590f3f72020-12-02 10:20:48 +000064- QLstm
Ryan OSheaf3a43232020-02-12 16:15:27 +000065- Quantize
66- QuantizedLstm
James Ward590f3f72020-12-02 10:20:48 +000067- Rank
Jan Eilers1121c6b2021-02-19 09:38:03 +000068- Reduce
Ryan OSheaf3a43232020-02-12 16:15:27 +000069- Reshape
70- Resize
Tracy Narine944fb502023-07-04 15:08:57 +010071- ReverseV2
Keith Davis3ae3f972021-05-21 16:33:48 +010072- Shape
Ryan OSheaf3a43232020-02-12 16:15:27 +000073- Slice
74- Softmax
75- SpaceToBatchNd
76- SpaceToDepth
77- Splitter
78- Stack
79- StandIn
80- StridedSlice
81- Subtraction
82- Switch
James Ward590f3f72020-12-02 10:20:48 +000083- Transpose
Ryan OSheaf3a43232020-02-12 16:15:27 +000084- TransposeConvolution2d
Narumol Prangnawarata0162e12021-07-23 14:47:49 +010085- UnidirectionalSequenceLstm
Ryan OSheaf3a43232020-02-12 16:15:27 +000086
87More machine learning layers will be supported in future releases.
88
Jan Eilers1ed388f2021-01-28 14:45:09 +000089@subsection serializersupportdeprecated Deprecated layers
Ryan OSheaf3a43232020-02-12 16:15:27 +000090
91Some 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:
92
Ryan OSheaf3a43232020-02-12 16:15:27 +000093- Abs will deserialize as ElementwiseUnary
Jan Eilers1ed388f2021-01-28 14:45:09 +000094- Equal will deserialize as Comparison
95- Greater will deserialize as Comparison
96- Merger will deserialize as Concat
97- ResizeBilinear will deserialize as Resize
Ryan OSheaf3a43232020-02-12 16:15:27 +000098- Rsqrt will deserialize as ElementwiseUnary
99<br/><br/><br/><br/>
100
Jan Eilers1ed388f2021-01-28 14:45:09 +0000101@page deserializer Deserializer
102@tableofcontents
Ryan OSheaf3a43232020-02-12 16:15:27 +0000103
104The `armnnDeserializer` is a library for loading neural networks defined by Arm NN FlatBuffers files
105into the Arm NN runtime.
106
Jan Eilers1ed388f2021-01-28 14:45:09 +0000107@section deserializersupport Supported Layers
Ryan OSheaf3a43232020-02-12 16:15:27 +0000108
Jan Eilers1ed388f2021-01-28 14:45:09 +0000109This reference guide provides a list of layers which can be deserialized by the Arm NN SDK.
Ryan OSheaf3a43232020-02-12 16:15:27 +0000110
Jan Eilers1ed388f2021-01-28 14:45:09 +0000111@subsection deserializersupportfully Fully supported
Ryan OSheaf3a43232020-02-12 16:15:27 +0000112
113The Arm NN SDK Deserialize parser currently supports the following layers:
114
115- Abs
116- Activation
117- Addition
118- ArgMinMax
Samuel Yapa04f4a12022-08-19 11:14:38 +0100119- BatchMatMul
Ryan OSheaf3a43232020-02-12 16:15:27 +0000120- BatchToSpaceNd
121- BatchNormalization
mathad01b392e982021-04-07 12:07:30 +0100122- Cast
Simon Obute51f67772021-09-03 15:50:13 +0100123- ChannelShuffle
Ryan OSheaf3a43232020-02-12 16:15:27 +0000124- Concat
125- Comparison
126- Constant
127- Convolution2d
128- DepthToSpace
129- DepthwiseConvolution2d
130- Dequantize
131- DetectionPostProcess
132- Division
James Ward590f3f72020-12-02 10:20:48 +0000133- ElementwiseUnary
134- Fill
Ryan OSheaf3a43232020-02-12 16:15:27 +0000135- Floor
136- FullyConnected
137- Gather
Teresa Charlin6966bfa2022-04-25 17:14:50 +0100138- GatherNd
Ryan OSheaf3a43232020-02-12 16:15:27 +0000139- Input
140- InstanceNormalization
141- L2Normalization
James Ward590f3f72020-12-02 10:20:48 +0000142- Logical
Ryan OSheaf3a43232020-02-12 16:15:27 +0000143- LogSoftmax
144- Lstm
145- Maximum
146- Mean
147- Merge
148- Minimum
149- Multiplication
150- Normalization
151- Output
152- Pad
153- Permute
154- Pooling2d
Teresa Charlin6966bfa2022-04-25 17:14:50 +0100155- Pooling3d
Ryan OSheaf3a43232020-02-12 16:15:27 +0000156- Prelu
157- Quantize
Jan Eilers1ed388f2021-01-28 14:45:09 +0000158- QLstm
Ryan OSheaf3a43232020-02-12 16:15:27 +0000159- QuantizedLstm
James Ward590f3f72020-12-02 10:20:48 +0000160- Rank
Jan Eilers1121c6b2021-02-19 09:38:03 +0000161- Reduce
Ryan OSheaf3a43232020-02-12 16:15:27 +0000162- Reshape
James Ward590f3f72020-12-02 10:20:48 +0000163- Resize
Jan Eilers1ed388f2021-01-28 14:45:09 +0000164- ResizeBilinear
Tracy Narine944fb502023-07-04 15:08:57 +0100165- ReverseV2
Ryan OSheaf3a43232020-02-12 16:15:27 +0000166- Slice
167- Softmax
168- SpaceToBatchNd
169- SpaceToDepth
170- Splitter
171- Stack
172- StandIn
173- StridedSlice
174- Subtraction
175- Switch
Jan Eilers1121c6b2021-02-19 09:38:03 +0000176- Transpose
Ryan OSheaf3a43232020-02-12 16:15:27 +0000177- TransposeConvolution2d
Narumol Prangnawarata0162e12021-07-23 14:47:49 +0100178- UnidirectionalSequenceLstm
Ryan OSheaf3a43232020-02-12 16:15:27 +0000179
180More machine learning layers will be supported in future releases.
181
Jan Eilers1ed388f2021-01-28 14:45:09 +0000182@subsection deserializersupportdeprecated Deprecated layers
Ryan OSheaf3a43232020-02-12 16:15:27 +0000183
184Some 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:
185
186- Equal will deserialize as Comparison
187- Merger will deserialize as Concat
188- Greater will deserialize as Comparison
189- ResizeBilinear will deserialize as Resize
190
191**/
Tracy Narine944fb502023-07-04 15:08:57 +0100192}