blob: 97d278036862a5acc444088d5efb9290eb2baf10 [file] [log] [blame]
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
Derek Lamberti0028d1b2019-02-20 13:57:42 +00006namespace armnnSerializer;
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +00007
8file_identifier "ARMN";
9
10file_extension "armnn";
11
Mike Kellyaf484012019-02-20 16:53:11 +000012enum ActivationFunction : byte {
13 Sigmoid = 0,
14 TanH = 1,
15 Linear = 2,
16 ReLu = 3,
17 BoundedReLu = 4,
18 SoftReLu = 5,
19 LeakyReLu = 6,
20 Abs = 7,
21 Sqrt = 8,
22 Square = 9
23}
24
Narumol Prangnawarat0cfcf232019-09-09 17:16:24 +010025enum ArgMinMaxFunction : byte {
26 Min = 0,
27 Max = 1
28}
29
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +000030enum DataType : byte {
31 Float16 = 0,
32 Float32 = 1,
33 QuantisedAsymm8 = 2,
34 Signed32 = 3,
Nattapat Chaimanowongcd5ac232019-03-19 12:26:36 +000035 Boolean = 4,
36 QuantisedSymm16 = 5
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +000037}
38
Saoirse Stewart3166c3e2019-02-18 15:24:53 +000039enum DataLayout : byte {
40 NHWC = 0,
41 NCHW = 1
42}
43
FinnWilliamsArm6fb339a2019-06-28 15:07:10 +010044enum ResizeMethod: byte {
45 NearestNeighbor = 0,
46 Bilinear = 1,
47}
48
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +000049table TensorInfo {
50 dimensions:[uint];
51 dataType:DataType;
52 quantizationScale:float = 1.0;
53 quantizationOffset:int = 0;
54}
55
56struct Connection {
57 sourceLayerIndex:uint;
58 outputSlotIndex:uint;
59}
60
61table ByteData {
62 data:[byte];
63}
64
65table ShortData {
66 data:[short];
67}
68
69table IntData {
70 data:[int];
71}
72
73table LongData {
74 data:[long];
75}
76
77union ConstTensorData { ByteData, ShortData, IntData, LongData }
78
79table ConstTensor {
80 info:TensorInfo;
81 data:ConstTensorData;
82}
83
84table InputSlot {
85 index:uint;
86 connection:Connection;
87}
88
89table OutputSlot {
90 index:uint;
91 tensorInfo:TensorInfo;
92}
93
94enum LayerType : uint {
95 Addition = 0,
96 Input = 1,
Sadik Armagan5f450272019-02-12 14:31:45 +000097 Multiplication = 2,
Aron Virginas-Tarfc413c02019-02-13 15:41:52 +000098 Output = 3,
Saoirse Stewart3166c3e2019-02-18 15:24:53 +000099 Pooling2d = 4,
Saoirse Stewart263829c2019-02-19 15:54:14 +0000100 Reshape = 5,
Mike Kellya0766c32019-02-19 17:22:07 +0000101 Softmax = 6,
Aron Virginas-Tarc04125f2019-02-19 16:31:08 +0000102 Convolution2d = 7,
Mike Kellyaf484012019-02-20 16:53:11 +0000103 DepthwiseConvolution2d = 8,
Nattapat Chaimanowong30b00202019-02-20 17:31:34 +0000104 Activation = 9,
Sadik Armagandbb0c0c2019-02-21 09:01:41 +0000105 Permute = 10,
Conor Kennedy76277882019-02-26 08:29:54 +0000106 FullyConnected = 11,
Nattapat Chaimanowong45286992019-02-26 15:53:02 +0000107 Constant = 12,
Nattapat Chaimanowong6b4ed982019-02-26 17:24:13 +0000108 SpaceToBatchNd = 13,
Éanna Ó Catháin58885892019-02-27 16:16:39 +0000109 BatchToSpaceNd = 14,
Aron Virginas-Tar0fe32452019-02-28 13:12:47 +0000110 Division = 15,
Nattapat Chaimanowong235cea52019-02-28 16:27:30 +0000111 Minimum = 16,
Aron Virginas-Tar377351e2019-02-27 14:42:31 +0000112 Equal = 17,
Nina Drozd57728782019-02-27 10:53:27 +0000113 Maximum = 18,
Nattapat Chaimanowongebb0f9c2019-03-01 12:14:06 +0000114 Normalization = 19,
Sadik Armagan8b42a382019-03-01 14:24:49 +0000115 Pad = 20,
Finn Williamsdd2ba7e2019-03-01 11:51:52 +0000116 Rsqrt = 21,
ruoyan018e7fa232019-02-28 15:09:07 +0000117 Floor = 22,
Conor Kennedy79ffdf52019-03-01 14:24:54 +0000118 BatchNormalization = 23,
Nattapat Chaimanowong6522cdc2019-03-01 16:14:13 +0000119 Greater = 24,
Conor Kennedyda1f9752019-03-01 14:37:12 +0000120 ResizeBilinear = 25,
Nattapat Chaimanowongb3485212019-03-04 12:35:39 +0000121 Subtraction = 26,
Saoirse Stewarta1ed73a2019-03-04 13:40:12 +0000122 StridedSlice = 27,
Sadik Armaganac97c8c2019-03-04 17:44:21 +0000123 Gather = 28,
Jim Flynnac25a1b2019-02-28 10:40:49 +0000124 Mean = 29,
Narumol Prangnawarat495701f2019-03-07 17:31:34 +0000125 Merger = 30,
Jim Flynn18ce3382019-03-08 11:08:30 +0000126 L2Normalization = 31,
Nattapat Chaimanowong3e14a9d2019-03-18 12:37:06 +0000127 Splitter = 32,
Jim Flynn11af3752019-03-19 17:22:29 +0000128 DetectionPostProcess = 33,
Derek Lamberti87acb272019-03-27 16:51:31 +0000129 Lstm = 34,
Nattapat Chaimanowonge4294fd2019-03-28 09:56:53 +0000130 Quantize = 35,
Nattapat Chaimanowong1f886302019-04-05 13:37:19 +0100131 Dequantize = 36,
Sadik Armaganeff363d2019-04-05 15:25:46 +0100132 Merge = 37,
Jim Flynne242f2d2019-05-22 14:24:13 +0100133 Switch = 38,
Aron Virginas-Taraa067142019-06-11 16:01:44 +0100134 Concat = 39,
Ellen Norris-Thompson51982472019-06-19 11:46:21 +0100135 SpaceToDepth = 40,
Aron Virginas-Tarcb549302019-06-21 13:53:38 +0100136 Prelu = 41,
FinnWilliamsArm6fb339a2019-06-28 15:07:10 +0100137 TransposeConvolution2d = 42,
Matthew Jacksonb5433ee2019-07-11 15:54:20 +0100138 Resize = 43,
Jan Eilers5b01a892019-07-23 09:47:43 +0100139 Stack = 44,
FinnWilliamsArm4ffcc8f2019-09-05 14:34:20 +0100140 QuantizedLstm = 45,
Narumol Prangnawarat0cfcf232019-09-09 17:16:24 +0100141 Abs = 46,
142 ArgMinMax = 47
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000143}
144
145// Base layer table to be used as part of other layers
146table LayerBase {
147 index:uint;
148 layerName:string;
149 layerType:LayerType;
150 inputSlots:[InputSlot];
151 outputSlots:[OutputSlot];
152}
153
154table BindableLayerBase {
155 base:LayerBase;
156 layerBindingId:int;
157}
158
159// Table for each layer defined below
FinnWilliamsArm4ffcc8f2019-09-05 14:34:20 +0100160
161table AbsLayer {
162 base:LayerBase;
163}
164
Mike Kellyaf484012019-02-20 16:53:11 +0000165table ActivationLayer {
166 base:LayerBase;
167 descriptor:ActivationDescriptor;
168}
169
170table ActivationDescriptor {
171 function:ActivationFunction = Sigmoid;
172 a:float;
173 b:float;
174}
175
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000176table AdditionLayer {
177 base:LayerBase;
178}
179
Narumol Prangnawarat0cfcf232019-09-09 17:16:24 +0100180table ArgMinMaxLayer {
181 base:LayerBase;
182 descriptor:ArgMinMaxDescriptor;
183}
184
185table ArgMinMaxDescriptor{
186 function:ArgMinMaxFunction;
187 axis:int;
188}
189
Conor Kennedy76277882019-02-26 08:29:54 +0000190table ConstantLayer {
191 base:LayerBase;
192 input:ConstTensor;
193}
194
Mike Kellya0766c32019-02-19 17:22:07 +0000195table Convolution2dLayer {
196 base:LayerBase;
197 descriptor:Convolution2dDescriptor;
198 weights:ConstTensor;
199 biases:ConstTensor;
200}
201
202table Convolution2dDescriptor {
203 padLeft:uint;
204 padRight:uint;
205 padTop:uint;
206 padBottom:uint;
207 strideX:uint;
208 strideY:uint;
Matthew Benthamacad04e2019-05-13 10:02:45 +0100209 dilationX:uint = 1;
210 dilationY:uint = 1;
Mike Kellya0766c32019-02-19 17:22:07 +0000211 biasEnabled:bool = false;
212 dataLayout:DataLayout = NCHW;
213}
214
Éanna Ó Catháin58885892019-02-27 16:16:39 +0000215table DivisionLayer {
216 base:LayerBase;
217}
218
Nattapat Chaimanowong235cea52019-02-28 16:27:30 +0000219table EqualLayer {
220 base:LayerBase;
221}
222
Finn Williamsdd2ba7e2019-03-01 11:51:52 +0000223table FloorLayer{
224 base:LayerBase;
225}
226
Sadik Armagandbb0c0c2019-02-21 09:01:41 +0000227table FullyConnectedLayer {
228 base:LayerBase;
229 descriptor:FullyConnectedDescriptor;
230 weights:ConstTensor;
231 biases:ConstTensor;
232}
233
234table FullyConnectedDescriptor {
235 biasEnabled:bool = false;
236 transposeWeightsMatrix:bool = false;
237}
238
Saoirse Stewarta1ed73a2019-03-04 13:40:12 +0000239table GatherLayer {
240 base:LayerBase;
241}
242
Conor Kennedy79ffdf52019-03-01 14:24:54 +0000243table GreaterLayer {
244 base:LayerBase;
245}
246
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000247table InputLayer {
248 base:BindableLayerBase;
249}
250
Narumol Prangnawarat495701f2019-03-07 17:31:34 +0000251table L2NormalizationLayer {
252 base:LayerBase;
253 descriptor:L2NormalizationDescriptor;
254}
255
256table L2NormalizationDescriptor {
257 dataLayout:DataLayout = NCHW;
Ferran Balaguer0dcffec2019-06-18 16:25:06 +0100258 eps:float = 1e-12;
Narumol Prangnawarat495701f2019-03-07 17:31:34 +0000259}
260
Aron Virginas-Tar0fe32452019-02-28 13:12:47 +0000261table MinimumLayer {
262 base:LayerBase;
263}
264
Aron Virginas-Tar377351e2019-02-27 14:42:31 +0000265table MaximumLayer {
266 base:LayerBase;
267}
268
Sadik Armagan5f450272019-02-12 14:31:45 +0000269table MultiplicationLayer {
270 base:LayerBase;
271}
272
Saoirse Stewart3166c3e2019-02-18 15:24:53 +0000273table Pooling2dLayer {
274 base:LayerBase;
275 descriptor:Pooling2dDescriptor;
276}
277
278enum PoolingAlgorithm : byte {
279 Max = 0,
280 Average = 1,
281 L2 = 2
282}
283
284enum OutputShapeRounding : byte {
285 Floor = 0,
286 Ceiling = 1
287}
288
289enum PaddingMethod : byte {
290 IgnoreValue = 0,
291 Exclude = 1
292}
293
294table Pooling2dDescriptor {
295 poolType:PoolingAlgorithm;
296 padLeft:uint;
297 padRight:uint;
298 padTop:uint;
299 padBottom:uint;
300 poolWidth:uint;
301 poolHeight:uint;
302 strideX:uint;
303 strideY:uint;
304 outputShapeRounding:OutputShapeRounding;
305 paddingMethod:PaddingMethod;
306 dataLayout:DataLayout;
307}
308
Derek Lamberti87acb272019-03-27 16:51:31 +0000309table QuantizeLayer {
310 base:LayerBase;
311}
312
Aron Virginas-Tarfc413c02019-02-13 15:41:52 +0000313table SoftmaxLayer {
314 base:LayerBase;
315 descriptor:SoftmaxDescriptor;
316}
317
318table SoftmaxDescriptor {
319 beta:float;
320}
321
Aron Virginas-Tarc04125f2019-02-19 16:31:08 +0000322table DepthwiseConvolution2dLayer {
323 base:LayerBase;
324 descriptor:DepthwiseConvolution2dDescriptor;
325 weights:ConstTensor;
326 biases:ConstTensor;
327}
328
329table DepthwiseConvolution2dDescriptor {
330 padLeft:uint;
331 padRight:uint;
332 padTop:uint;
333 padBottom:uint;
334 strideX:uint;
335 strideY:uint;
Matthew Benthamacad04e2019-05-13 10:02:45 +0100336 dilationX:uint = 1;
337 dilationY:uint = 1;
Aron Virginas-Tarc04125f2019-02-19 16:31:08 +0000338 biasEnabled:bool = false;
339 dataLayout:DataLayout = NCHW;
340}
341
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000342table OutputLayer {
343 base:BindableLayerBase;
344}
345
Saoirse Stewart263829c2019-02-19 15:54:14 +0000346table ReshapeLayer {
347 base:LayerBase;
348 descriptor:ReshapeDescriptor;
349}
350
351table ReshapeDescriptor {
352 targetShape:[uint];
353}
354
Nattapat Chaimanowong30b00202019-02-20 17:31:34 +0000355table PermuteLayer {
356 base:LayerBase;
357 descriptor:PermuteDescriptor;
358}
359
360table PermuteDescriptor {
361 dimMappings:[uint];
362}
363
Nattapat Chaimanowong45286992019-02-26 15:53:02 +0000364table SpaceToBatchNdLayer {
365 base:LayerBase;
366 descriptor:SpaceToBatchNdDescriptor;
367}
368
369table SpaceToBatchNdDescriptor {
370 blockShape:[uint];
371 padList:[uint];
372 dataLayout:DataLayout;
373}
374
Aron Virginas-Taraa067142019-06-11 16:01:44 +0100375table SpaceToDepthLayer {
376 base:LayerBase;
377 descriptor:SpaceToDepthDescriptor;
378}
379
380table SpaceToDepthDescriptor {
381 blockSize:uint;
382 dataLayout:DataLayout;
383}
384
Conor Kennedyda1f9752019-03-01 14:37:12 +0000385table SubtractionLayer {
386 base:LayerBase;
387}
388
Nattapat Chaimanowong6b4ed982019-02-26 17:24:13 +0000389table BatchToSpaceNdLayer {
390 base:LayerBase;
391 descriptor:BatchToSpaceNdDescriptor;
392}
393
394table BatchToSpaceNdDescriptor {
395 blockShape:[uint];
396 crops:[uint];
397 dataLayout:DataLayout;
398}
399
Nina Drozd57728782019-02-27 10:53:27 +0000400enum NormalizationAlgorithmChannel : byte {
401 Across = 0,
402 Within = 1
403}
404
405enum NormalizationAlgorithmMethod : byte {
406 LocalBrightness = 0,
407 LocalContrast = 1
408}
409
410table NormalizationLayer {
411 base:LayerBase;
412 descriptor:NormalizationDescriptor;
413}
414
415table NormalizationDescriptor {
416 normChannelType:NormalizationAlgorithmChannel = Across;
417 normMethodType:NormalizationAlgorithmMethod = LocalBrightness;
418 normSize:uint;
419 alpha:float;
420 beta:float;
421 k:float;
422 dataLayout:DataLayout = NCHW;
423}
424
Sadik Armaganac97c8c2019-03-04 17:44:21 +0000425table MeanLayer {
426 base:LayerBase;
427 descriptor:MeanDescriptor;
428}
429
430table MeanDescriptor {
431 axis:[uint];
432 keepDims:bool = false;
433}
434
Nattapat Chaimanowongebb0f9c2019-03-01 12:14:06 +0000435table PadLayer {
436 base:LayerBase;
437 descriptor:PadDescriptor;
438}
439
440table PadDescriptor {
441 padList:[uint];
David Monahan34757812019-06-19 11:47:21 +0100442 padValue:float = 0;
Nattapat Chaimanowongebb0f9c2019-03-01 12:14:06 +0000443}
444
Sadik Armagan8b42a382019-03-01 14:24:49 +0000445table RsqrtLayer {
446 base:LayerBase;
447}
448
ruoyan018e7fa232019-02-28 15:09:07 +0000449table BatchNormalizationLayer {
450 base:LayerBase;
451 descriptor:BatchNormalizationDescriptor;
452 mean:ConstTensor;
453 variance:ConstTensor;
454 beta:ConstTensor;
455 gamma:ConstTensor;
456}
457
458table BatchNormalizationDescriptor {
459 eps:float;
460 dataLayout:DataLayout;
461}
462
Nattapat Chaimanowong6522cdc2019-03-01 16:14:13 +0000463table ResizeBilinearLayer {
464 base:LayerBase;
465 descriptor:ResizeBilinearDescriptor;
466}
467
468table ResizeBilinearDescriptor {
469 targetWidth:uint;
470 targetHeight:uint;
471 dataLayout:DataLayout;
472}
473
Nattapat Chaimanowongb3485212019-03-04 12:35:39 +0000474table StridedSliceLayer {
475 base:LayerBase;
476 descriptor:StridedSliceDescriptor;
477}
478
479table StridedSliceDescriptor {
480 begin:[int];
481 end:[int];
482 stride:[int];
483 beginMask:int;
484 endMask:int;
485 shrinkAxisMask:int;
486 ellipsisMask:int;
487 newAxisMask:int;
488 dataLayout:DataLayout;
489}
490
Jim Flynne242f2d2019-05-22 14:24:13 +0100491table ConcatLayer {
492 base:LayerBase;
493 descriptor:OriginsDescriptor;
494}
495
Jim Flynnac25a1b2019-02-28 10:40:49 +0000496table MergerLayer {
497 base:LayerBase;
498 descriptor:OriginsDescriptor;
499}
500
501table UintVector {
502 data:[uint];
503}
504
505table OriginsDescriptor {
506 concatAxis:uint;
507 numViews:uint;
508 numDimensions:uint;
509 viewOrigins:[UintVector];
510}
511
Jim Flynn18ce3382019-03-08 11:08:30 +0000512table ViewsDescriptor {
513 origins:OriginsDescriptor;
514 viewSizes:[UintVector];
515}
516
517table SplitterLayer {
518 base:LayerBase;
519 descriptor:ViewsDescriptor;
520}
521
Nattapat Chaimanowong3e14a9d2019-03-18 12:37:06 +0000522table DetectionPostProcessLayer {
523 base:LayerBase;
524 descriptor:DetectionPostProcessDescriptor;
525 anchors:ConstTensor;
526}
527
528table DetectionPostProcessDescriptor {
529 maxDetections:uint;
530 maxClassesPerDetection:uint;
531 detectionsPerClass:uint;
532 nmsScoreThreshold:float;
533 nmsIouThreshold:float;
534 numClasses:uint;
535 useRegularNms:bool;
536 scaleX:float;
537 scaleY:float;
538 scaleW:float;
539 scaleH:float;
540}
541
Jim Flynn11af3752019-03-19 17:22:29 +0000542table LstmInputParams {
543 inputToForgetWeights:ConstTensor;
544 inputToCellWeights:ConstTensor;
545 inputToOutputWeights:ConstTensor;
546 recurrentToForgetWeights:ConstTensor;
547 recurrentToCellWeights:ConstTensor;
548 recurrentToOutputWeights:ConstTensor;
549 forgetGateBias:ConstTensor;
550 cellBias:ConstTensor;
551 outputGateBias:ConstTensor;
552
553 inputToInputWeights:ConstTensor;
554 recurrentToInputWeights:ConstTensor;
555 cellToInputWeights:ConstTensor;
556 inputGateBias:ConstTensor;
557
558 projectionWeights:ConstTensor;
559 projectionBias:ConstTensor;
560
561 cellToForgetWeights:ConstTensor;
562 cellToOutputWeights:ConstTensor;
Jan Eilersf8c62972019-07-17 11:07:49 +0100563
564 inputLayerNormWeights:ConstTensor;
565 forgetLayerNormWeights:ConstTensor;
566 cellLayerNormWeights:ConstTensor;
567 outputLayerNormWeights:ConstTensor;
Jim Flynn11af3752019-03-19 17:22:29 +0000568}
569
Jan Eilers5b01a892019-07-23 09:47:43 +0100570table QuantizedLstmInputParams {
571 inputToInputWeights:ConstTensor;
572 inputToForgetWeights:ConstTensor;
573 inputToCellWeights:ConstTensor;
574 inputToOutputWeights:ConstTensor;
575
576 recurrentToInputWeights:ConstTensor;
577 recurrentToForgetWeights:ConstTensor;
578 recurrentToCellWeights:ConstTensor;
579 recurrentToOutputWeights:ConstTensor;
580
581 inputGateBias:ConstTensor;
582 forgetGateBias:ConstTensor;
583 cellBias:ConstTensor;
584 outputGateBias:ConstTensor;
585}
586
Jim Flynn11af3752019-03-19 17:22:29 +0000587table LstmDescriptor {
588 activationFunc:uint;
589 clippingThresCell:float;
590 clippingThresProj:float;
591 cifgEnabled:bool = true;
592 peepholeEnabled:bool = false;
593 projectionEnabled:bool = false;
Jan Eilersf8c62972019-07-17 11:07:49 +0100594 layerNormEnabled:bool = false;
Jim Flynn11af3752019-03-19 17:22:29 +0000595}
596
597table LstmLayer {
598 base:LayerBase;
599 descriptor:LstmDescriptor;
600 inputParams:LstmInputParams;
601}
602
Jan Eilers5b01a892019-07-23 09:47:43 +0100603table QuantizedLstmLayer {
604 base:LayerBase;
605 inputParams:QuantizedLstmInputParams;
606}
607
Nattapat Chaimanowonge4294fd2019-03-28 09:56:53 +0000608table DequantizeLayer {
609 base:LayerBase;
610}
611
Nattapat Chaimanowong1f886302019-04-05 13:37:19 +0100612table MergeLayer {
613 base:LayerBase;
614}
615
Sadik Armaganeff363d2019-04-05 15:25:46 +0100616table SwitchLayer {
617 base:LayerBase;
618}
619
Ellen Norris-Thompson51982472019-06-19 11:46:21 +0100620table PreluLayer {
621 base:LayerBase;
622}
623
Aron Virginas-Tarcb549302019-06-21 13:53:38 +0100624table TransposeConvolution2dLayer {
625 base:LayerBase;
626 descriptor:TransposeConvolution2dDescriptor;
627 weights:ConstTensor;
628 biases:ConstTensor;
629}
630
631table TransposeConvolution2dDescriptor {
632 padLeft:uint;
633 padRight:uint;
634 padTop:uint;
635 padBottom:uint;
636 strideX:uint;
637 strideY:uint;
638 biasEnabled:bool = false;
639 dataLayout:DataLayout = NCHW;
640}
641
FinnWilliamsArm6fb339a2019-06-28 15:07:10 +0100642table ResizeLayer {
643 base:LayerBase;
644 descriptor:ResizeDescriptor;
645}
646
647table ResizeDescriptor {
648 targetHeight:uint;
649 targetWidth:uint;
650 method:ResizeMethod = NearestNeighbor;
651 dataLayout:DataLayout;
652}
653
Matthew Jacksonb5433ee2019-07-11 15:54:20 +0100654table StackLayer {
655 base:LayerBase;
656 descriptor:StackDescriptor;
657}
658
659table StackDescriptor {
660 axis:uint;
661 numInputs:uint;
662 inputShape:[uint];
663}
664
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000665union Layer {
Mike Kellyaf484012019-02-20 16:53:11 +0000666 ActivationLayer,
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000667 AdditionLayer,
Nattapat Chaimanowong6b4ed982019-02-26 17:24:13 +0000668 BatchToSpaceNdLayer,
ruoyan018e7fa232019-02-28 15:09:07 +0000669 BatchNormalizationLayer,
Conor Kennedy76277882019-02-26 08:29:54 +0000670 ConstantLayer,
Mike Kellya0766c32019-02-19 17:22:07 +0000671 Convolution2dLayer,
Aron Virginas-Tarc04125f2019-02-19 16:31:08 +0000672 DepthwiseConvolution2dLayer,
Sadik Armagandbb0c0c2019-02-21 09:01:41 +0000673 FullyConnectedLayer,
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000674 InputLayer,
Sadik Armagan5f450272019-02-12 14:31:45 +0000675 MultiplicationLayer,
Aron Virginas-Tarfc413c02019-02-13 15:41:52 +0000676 OutputLayer,
Nattapat Chaimanowong30b00202019-02-20 17:31:34 +0000677 PermuteLayer,
Saoirse Stewart3166c3e2019-02-18 15:24:53 +0000678 Pooling2dLayer,
Saoirse Stewart263829c2019-02-19 15:54:14 +0000679 ReshapeLayer,
Nattapat Chaimanowong45286992019-02-26 15:53:02 +0000680 SoftmaxLayer,
Éanna Ó Catháin58885892019-02-27 16:16:39 +0000681 SpaceToBatchNdLayer,
Aron Virginas-Tar0fe32452019-02-28 13:12:47 +0000682 DivisionLayer,
Nattapat Chaimanowong235cea52019-02-28 16:27:30 +0000683 MinimumLayer,
Aron Virginas-Tar377351e2019-02-27 14:42:31 +0000684 EqualLayer,
Nina Drozd57728782019-02-27 10:53:27 +0000685 MaximumLayer,
Nattapat Chaimanowongebb0f9c2019-03-01 12:14:06 +0000686 NormalizationLayer,
Sadik Armagan8b42a382019-03-01 14:24:49 +0000687 PadLayer,
Finn Williamsdd2ba7e2019-03-01 11:51:52 +0000688 RsqrtLayer,
Conor Kennedy79ffdf52019-03-01 14:24:54 +0000689 FloorLayer,
Nattapat Chaimanowong6522cdc2019-03-01 16:14:13 +0000690 GreaterLayer,
Conor Kennedyda1f9752019-03-01 14:37:12 +0000691 ResizeBilinearLayer,
Nattapat Chaimanowongb3485212019-03-04 12:35:39 +0000692 SubtractionLayer,
Saoirse Stewarta1ed73a2019-03-04 13:40:12 +0000693 StridedSliceLayer,
Sadik Armaganac97c8c2019-03-04 17:44:21 +0000694 GatherLayer,
Jim Flynnac25a1b2019-02-28 10:40:49 +0000695 MeanLayer,
Narumol Prangnawarat495701f2019-03-07 17:31:34 +0000696 MergerLayer,
Jim Flynn18ce3382019-03-08 11:08:30 +0000697 L2NormalizationLayer,
Nattapat Chaimanowong3e14a9d2019-03-18 12:37:06 +0000698 SplitterLayer,
Jim Flynn11af3752019-03-19 17:22:29 +0000699 DetectionPostProcessLayer,
Derek Lamberti87acb272019-03-27 16:51:31 +0000700 LstmLayer,
Jan Eilers5b01a892019-07-23 09:47:43 +0100701 QuantizedLstmLayer,
Nattapat Chaimanowonge4294fd2019-03-28 09:56:53 +0000702 QuantizeLayer,
Nattapat Chaimanowong1f886302019-04-05 13:37:19 +0100703 DequantizeLayer,
Sadik Armaganeff363d2019-04-05 15:25:46 +0100704 MergeLayer,
Jim Flynne242f2d2019-05-22 14:24:13 +0100705 SwitchLayer,
Aron Virginas-Taraa067142019-06-11 16:01:44 +0100706 ConcatLayer,
Ellen Norris-Thompson51982472019-06-19 11:46:21 +0100707 SpaceToDepthLayer,
Aron Virginas-Tarcb549302019-06-21 13:53:38 +0100708 PreluLayer,
FinnWilliamsArm6fb339a2019-06-28 15:07:10 +0100709 TransposeConvolution2dLayer,
Matthew Jacksonb5433ee2019-07-11 15:54:20 +0100710 ResizeLayer,
FinnWilliamsArm4ffcc8f2019-09-05 14:34:20 +0100711 StackLayer,
Narumol Prangnawarat0cfcf232019-09-09 17:16:24 +0100712 AbsLayer,
713 ArgMinMaxLayer
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000714}
715
Saoirse Stewart49dbe0e2019-02-05 17:27:06 +0000716table AnyLayer {
717 layer:Layer;
718}
719
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000720// Root type for serialized data is the graph of the network
721table SerializedGraph {
Saoirse Stewart49dbe0e2019-02-05 17:27:06 +0000722 layers:[AnyLayer];
Mike Kelly8c1701a2019-02-11 17:01:27 +0000723 inputIds:[uint];
724 outputIds:[uint];
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000725}
726
727root_type SerializedGraph;