blob: 84324d89d50601c25da6d9f644103653c18b23a7 [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
Simon Obute51f67772021-09-03 15:50:13 +010028- ChannelShuffle
Ryan OSheaf3a43232020-02-12 16:15:27 +000029- Comparison
30- Concat
31- Constant
32- Convolution2d
Matthew Sloyanb63a3112021-09-08 13:05:51 +010033- Convolution3d
Ryan OSheaf3a43232020-02-12 16:15:27 +000034- DepthToSpace
35- DepthwiseConvolution2d
36- Dequantize
37- DetectionPostProcess
38- Division
39- ElementwiseUnary
Jan Eilers1ed388f2021-01-28 14:45:09 +000040- Fill
Ryan OSheaf3a43232020-02-12 16:15:27 +000041- Floor
42- FullyConnected
43- Gather
44- Input
45- InstanceNormalization
46- L2Normalization
James Ward590f3f72020-12-02 10:20:48 +000047- Logical
Ryan OSheaf3a43232020-02-12 16:15:27 +000048- LogSoftmax
49- Lstm
50- Maximum
51- Mean
52- Merge
53- Minimum
54- Multiplication
55- Normalization
56- Output
Matthew Sloyan2e5d0b22021-10-21 14:05:31 +010057- Pad (Constant, Symmetric, Reflect)
Ryan OSheaf3a43232020-02-12 16:15:27 +000058- Permute
59- Pooling2d
Tamas Nyirid998a1c2021-11-05 14:55:33 +000060- Pooling3d
Ryan OSheaf3a43232020-02-12 16:15:27 +000061- Prelu
James Ward590f3f72020-12-02 10:20:48 +000062- QLstm
Ryan OSheaf3a43232020-02-12 16:15:27 +000063- Quantize
64- QuantizedLstm
James Ward590f3f72020-12-02 10:20:48 +000065- Rank
Jan Eilers1121c6b2021-02-19 09:38:03 +000066- Reduce
Ryan OSheaf3a43232020-02-12 16:15:27 +000067- Reshape
68- Resize
Keith Davis3ae3f972021-05-21 16:33:48 +010069- Shape
Ryan OSheaf3a43232020-02-12 16:15:27 +000070- Slice
71- Softmax
72- SpaceToBatchNd
73- SpaceToDepth
74- Splitter
75- Stack
76- StandIn
77- StridedSlice
78- Subtraction
79- Switch
James Ward590f3f72020-12-02 10:20:48 +000080- Transpose
Ryan OSheaf3a43232020-02-12 16:15:27 +000081- TransposeConvolution2d
Narumol Prangnawarata0162e12021-07-23 14:47:49 +010082- UnidirectionalSequenceLstm
Ryan OSheaf3a43232020-02-12 16:15:27 +000083
84More machine learning layers will be supported in future releases.
85
Jan Eilers1ed388f2021-01-28 14:45:09 +000086@subsection serializersupportdeprecated Deprecated layers
Ryan OSheaf3a43232020-02-12 16:15:27 +000087
88Some 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:
89
Ryan OSheaf3a43232020-02-12 16:15:27 +000090- Abs will deserialize as ElementwiseUnary
Jan Eilers1ed388f2021-01-28 14:45:09 +000091- Equal will deserialize as Comparison
92- Greater will deserialize as Comparison
93- Merger will deserialize as Concat
94- ResizeBilinear will deserialize as Resize
Ryan OSheaf3a43232020-02-12 16:15:27 +000095- Rsqrt will deserialize as ElementwiseUnary
96<br/><br/><br/><br/>
97
Jan Eilers1ed388f2021-01-28 14:45:09 +000098@page deserializer Deserializer
99@tableofcontents
Ryan OSheaf3a43232020-02-12 16:15:27 +0000100
101The `armnnDeserializer` is a library for loading neural networks defined by Arm NN FlatBuffers files
102into the Arm NN runtime.
103
Jan Eilers1ed388f2021-01-28 14:45:09 +0000104@section deserializersupport Supported Layers
Ryan OSheaf3a43232020-02-12 16:15:27 +0000105
Jan Eilers1ed388f2021-01-28 14:45:09 +0000106This reference guide provides a list of layers which can be deserialized by the Arm NN SDK.
Ryan OSheaf3a43232020-02-12 16:15:27 +0000107
Jan Eilers1ed388f2021-01-28 14:45:09 +0000108@subsection deserializersupportfully Fully supported
Ryan OSheaf3a43232020-02-12 16:15:27 +0000109
110The Arm NN SDK Deserialize parser currently supports the following layers:
111
112- Abs
113- Activation
114- Addition
115- ArgMinMax
116- BatchToSpaceNd
117- BatchNormalization
mathad01b392e982021-04-07 12:07:30 +0100118- Cast
Simon Obute51f67772021-09-03 15:50:13 +0100119- ChannelShuffle
Ryan OSheaf3a43232020-02-12 16:15:27 +0000120- Concat
121- Comparison
122- Constant
123- Convolution2d
124- DepthToSpace
125- DepthwiseConvolution2d
126- Dequantize
127- DetectionPostProcess
128- Division
James Ward590f3f72020-12-02 10:20:48 +0000129- ElementwiseUnary
130- Fill
Ryan OSheaf3a43232020-02-12 16:15:27 +0000131- Floor
132- FullyConnected
133- Gather
134- Input
135- InstanceNormalization
136- L2Normalization
James Ward590f3f72020-12-02 10:20:48 +0000137- Logical
Ryan OSheaf3a43232020-02-12 16:15:27 +0000138- LogSoftmax
139- Lstm
140- Maximum
141- Mean
142- Merge
143- Minimum
144- Multiplication
145- Normalization
146- Output
147- Pad
148- Permute
149- Pooling2d
150- Prelu
151- Quantize
Jan Eilers1ed388f2021-01-28 14:45:09 +0000152- QLstm
Ryan OSheaf3a43232020-02-12 16:15:27 +0000153- QuantizedLstm
James Ward590f3f72020-12-02 10:20:48 +0000154- Rank
Jan Eilers1121c6b2021-02-19 09:38:03 +0000155- Reduce
Ryan OSheaf3a43232020-02-12 16:15:27 +0000156- Reshape
James Ward590f3f72020-12-02 10:20:48 +0000157- Resize
Jan Eilers1ed388f2021-01-28 14:45:09 +0000158- ResizeBilinear
Ryan OSheaf3a43232020-02-12 16:15:27 +0000159- Slice
160- Softmax
161- SpaceToBatchNd
162- SpaceToDepth
163- Splitter
164- Stack
165- StandIn
166- StridedSlice
167- Subtraction
168- Switch
Jan Eilers1121c6b2021-02-19 09:38:03 +0000169- Transpose
Ryan OSheaf3a43232020-02-12 16:15:27 +0000170- TransposeConvolution2d
Narumol Prangnawarata0162e12021-07-23 14:47:49 +0100171- UnidirectionalSequenceLstm
Ryan OSheaf3a43232020-02-12 16:15:27 +0000172
173More machine learning layers will be supported in future releases.
174
Jan Eilers1ed388f2021-01-28 14:45:09 +0000175@subsection deserializersupportdeprecated Deprecated layers
Ryan OSheaf3a43232020-02-12 16:15:27 +0000176
177Some 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:
178
179- Equal will deserialize as Comparison
180- Merger will deserialize as Concat
181- Greater will deserialize as Comparison
182- ResizeBilinear will deserialize as Resize
183
184**/
185}