blob: 513c74e82ddd39c0a6730f8fbc99701f9d304645 [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
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +000025enum DataType : byte {
26 Float16 = 0,
27 Float32 = 1,
28 QuantisedAsymm8 = 2,
29 Signed32 = 3,
Nattapat Chaimanowongcd5ac232019-03-19 12:26:36 +000030 Boolean = 4,
31 QuantisedSymm16 = 5
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +000032}
33
Saoirse Stewart3166c3e2019-02-18 15:24:53 +000034enum DataLayout : byte {
35 NHWC = 0,
36 NCHW = 1
37}
38
FinnWilliamsArm6fb339a2019-06-28 15:07:10 +010039enum ResizeMethod: byte {
40 NearestNeighbor = 0,
41 Bilinear = 1,
42}
43
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +000044table TensorInfo {
45 dimensions:[uint];
46 dataType:DataType;
47 quantizationScale:float = 1.0;
48 quantizationOffset:int = 0;
49}
50
51struct Connection {
52 sourceLayerIndex:uint;
53 outputSlotIndex:uint;
54}
55
56table ByteData {
57 data:[byte];
58}
59
60table ShortData {
61 data:[short];
62}
63
64table IntData {
65 data:[int];
66}
67
68table LongData {
69 data:[long];
70}
71
72union ConstTensorData { ByteData, ShortData, IntData, LongData }
73
74table ConstTensor {
75 info:TensorInfo;
76 data:ConstTensorData;
77}
78
79table InputSlot {
80 index:uint;
81 connection:Connection;
82}
83
84table OutputSlot {
85 index:uint;
86 tensorInfo:TensorInfo;
87}
88
89enum LayerType : uint {
90 Addition = 0,
91 Input = 1,
Sadik Armagan5f450272019-02-12 14:31:45 +000092 Multiplication = 2,
Aron Virginas-Tarfc413c02019-02-13 15:41:52 +000093 Output = 3,
Saoirse Stewart3166c3e2019-02-18 15:24:53 +000094 Pooling2d = 4,
Saoirse Stewart263829c2019-02-19 15:54:14 +000095 Reshape = 5,
Mike Kellya0766c32019-02-19 17:22:07 +000096 Softmax = 6,
Aron Virginas-Tarc04125f2019-02-19 16:31:08 +000097 Convolution2d = 7,
Mike Kellyaf484012019-02-20 16:53:11 +000098 DepthwiseConvolution2d = 8,
Nattapat Chaimanowong30b00202019-02-20 17:31:34 +000099 Activation = 9,
Sadik Armagandbb0c0c2019-02-21 09:01:41 +0000100 Permute = 10,
Conor Kennedy76277882019-02-26 08:29:54 +0000101 FullyConnected = 11,
Nattapat Chaimanowong45286992019-02-26 15:53:02 +0000102 Constant = 12,
Nattapat Chaimanowong6b4ed982019-02-26 17:24:13 +0000103 SpaceToBatchNd = 13,
Éanna Ó Catháin58885892019-02-27 16:16:39 +0000104 BatchToSpaceNd = 14,
Aron Virginas-Tar0fe32452019-02-28 13:12:47 +0000105 Division = 15,
Nattapat Chaimanowong235cea52019-02-28 16:27:30 +0000106 Minimum = 16,
Aron Virginas-Tar377351e2019-02-27 14:42:31 +0000107 Equal = 17,
Nina Drozd57728782019-02-27 10:53:27 +0000108 Maximum = 18,
Nattapat Chaimanowongebb0f9c2019-03-01 12:14:06 +0000109 Normalization = 19,
Sadik Armagan8b42a382019-03-01 14:24:49 +0000110 Pad = 20,
Finn Williamsdd2ba7e2019-03-01 11:51:52 +0000111 Rsqrt = 21,
ruoyan018e7fa232019-02-28 15:09:07 +0000112 Floor = 22,
Conor Kennedy79ffdf52019-03-01 14:24:54 +0000113 BatchNormalization = 23,
Nattapat Chaimanowong6522cdc2019-03-01 16:14:13 +0000114 Greater = 24,
Conor Kennedyda1f9752019-03-01 14:37:12 +0000115 ResizeBilinear = 25,
Nattapat Chaimanowongb3485212019-03-04 12:35:39 +0000116 Subtraction = 26,
Saoirse Stewarta1ed73a2019-03-04 13:40:12 +0000117 StridedSlice = 27,
Sadik Armaganac97c8c2019-03-04 17:44:21 +0000118 Gather = 28,
Jim Flynnac25a1b2019-02-28 10:40:49 +0000119 Mean = 29,
Narumol Prangnawarat495701f2019-03-07 17:31:34 +0000120 Merger = 30,
Jim Flynn18ce3382019-03-08 11:08:30 +0000121 L2Normalization = 31,
Nattapat Chaimanowong3e14a9d2019-03-18 12:37:06 +0000122 Splitter = 32,
Jim Flynn11af3752019-03-19 17:22:29 +0000123 DetectionPostProcess = 33,
Derek Lamberti87acb272019-03-27 16:51:31 +0000124 Lstm = 34,
Nattapat Chaimanowonge4294fd2019-03-28 09:56:53 +0000125 Quantize = 35,
Nattapat Chaimanowong1f886302019-04-05 13:37:19 +0100126 Dequantize = 36,
Sadik Armaganeff363d2019-04-05 15:25:46 +0100127 Merge = 37,
Jim Flynne242f2d2019-05-22 14:24:13 +0100128 Switch = 38,
Aron Virginas-Taraa067142019-06-11 16:01:44 +0100129 Concat = 39,
Ellen Norris-Thompson51982472019-06-19 11:46:21 +0100130 SpaceToDepth = 40,
Aron Virginas-Tarcb549302019-06-21 13:53:38 +0100131 Prelu = 41,
FinnWilliamsArm6fb339a2019-06-28 15:07:10 +0100132 TransposeConvolution2d = 42,
Matthew Jacksonb5433ee2019-07-11 15:54:20 +0100133 Resize = 43,
Jan Eilers5b01a892019-07-23 09:47:43 +0100134 Stack = 44,
135 QuantizedLstm = 45
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000136}
137
138// Base layer table to be used as part of other layers
139table LayerBase {
140 index:uint;
141 layerName:string;
142 layerType:LayerType;
143 inputSlots:[InputSlot];
144 outputSlots:[OutputSlot];
145}
146
147table BindableLayerBase {
148 base:LayerBase;
149 layerBindingId:int;
150}
151
152// Table for each layer defined below
Mike Kellyaf484012019-02-20 16:53:11 +0000153table ActivationLayer {
154 base:LayerBase;
155 descriptor:ActivationDescriptor;
156}
157
158table ActivationDescriptor {
159 function:ActivationFunction = Sigmoid;
160 a:float;
161 b:float;
162}
163
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000164table AdditionLayer {
165 base:LayerBase;
166}
167
Conor Kennedy76277882019-02-26 08:29:54 +0000168table ConstantLayer {
169 base:LayerBase;
170 input:ConstTensor;
171}
172
Mike Kellya0766c32019-02-19 17:22:07 +0000173table Convolution2dLayer {
174 base:LayerBase;
175 descriptor:Convolution2dDescriptor;
176 weights:ConstTensor;
177 biases:ConstTensor;
178}
179
180table Convolution2dDescriptor {
181 padLeft:uint;
182 padRight:uint;
183 padTop:uint;
184 padBottom:uint;
185 strideX:uint;
186 strideY:uint;
Matthew Benthamacad04e2019-05-13 10:02:45 +0100187 dilationX:uint = 1;
188 dilationY:uint = 1;
Mike Kellya0766c32019-02-19 17:22:07 +0000189 biasEnabled:bool = false;
190 dataLayout:DataLayout = NCHW;
191}
192
Éanna Ó Catháin58885892019-02-27 16:16:39 +0000193table DivisionLayer {
194 base:LayerBase;
195}
196
Nattapat Chaimanowong235cea52019-02-28 16:27:30 +0000197table EqualLayer {
198 base:LayerBase;
199}
200
Finn Williamsdd2ba7e2019-03-01 11:51:52 +0000201table FloorLayer{
202 base:LayerBase;
203}
204
Sadik Armagandbb0c0c2019-02-21 09:01:41 +0000205table FullyConnectedLayer {
206 base:LayerBase;
207 descriptor:FullyConnectedDescriptor;
208 weights:ConstTensor;
209 biases:ConstTensor;
210}
211
212table FullyConnectedDescriptor {
213 biasEnabled:bool = false;
214 transposeWeightsMatrix:bool = false;
215}
216
Saoirse Stewarta1ed73a2019-03-04 13:40:12 +0000217table GatherLayer {
218 base:LayerBase;
219}
220
Conor Kennedy79ffdf52019-03-01 14:24:54 +0000221table GreaterLayer {
222 base:LayerBase;
223}
224
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000225table InputLayer {
226 base:BindableLayerBase;
227}
228
Narumol Prangnawarat495701f2019-03-07 17:31:34 +0000229table L2NormalizationLayer {
230 base:LayerBase;
231 descriptor:L2NormalizationDescriptor;
232}
233
234table L2NormalizationDescriptor {
235 dataLayout:DataLayout = NCHW;
Ferran Balaguer0dcffec2019-06-18 16:25:06 +0100236 eps:float = 1e-12;
Narumol Prangnawarat495701f2019-03-07 17:31:34 +0000237}
238
Aron Virginas-Tar0fe32452019-02-28 13:12:47 +0000239table MinimumLayer {
240 base:LayerBase;
241}
242
Aron Virginas-Tar377351e2019-02-27 14:42:31 +0000243table MaximumLayer {
244 base:LayerBase;
245}
246
Sadik Armagan5f450272019-02-12 14:31:45 +0000247table MultiplicationLayer {
248 base:LayerBase;
249}
250
Saoirse Stewart3166c3e2019-02-18 15:24:53 +0000251table Pooling2dLayer {
252 base:LayerBase;
253 descriptor:Pooling2dDescriptor;
254}
255
256enum PoolingAlgorithm : byte {
257 Max = 0,
258 Average = 1,
259 L2 = 2
260}
261
262enum OutputShapeRounding : byte {
263 Floor = 0,
264 Ceiling = 1
265}
266
267enum PaddingMethod : byte {
268 IgnoreValue = 0,
269 Exclude = 1
270}
271
272table Pooling2dDescriptor {
273 poolType:PoolingAlgorithm;
274 padLeft:uint;
275 padRight:uint;
276 padTop:uint;
277 padBottom:uint;
278 poolWidth:uint;
279 poolHeight:uint;
280 strideX:uint;
281 strideY:uint;
282 outputShapeRounding:OutputShapeRounding;
283 paddingMethod:PaddingMethod;
284 dataLayout:DataLayout;
285}
286
Derek Lamberti87acb272019-03-27 16:51:31 +0000287table QuantizeLayer {
288 base:LayerBase;
289}
290
Aron Virginas-Tarfc413c02019-02-13 15:41:52 +0000291table SoftmaxLayer {
292 base:LayerBase;
293 descriptor:SoftmaxDescriptor;
294}
295
296table SoftmaxDescriptor {
297 beta:float;
298}
299
Aron Virginas-Tarc04125f2019-02-19 16:31:08 +0000300table DepthwiseConvolution2dLayer {
301 base:LayerBase;
302 descriptor:DepthwiseConvolution2dDescriptor;
303 weights:ConstTensor;
304 biases:ConstTensor;
305}
306
307table DepthwiseConvolution2dDescriptor {
308 padLeft:uint;
309 padRight:uint;
310 padTop:uint;
311 padBottom:uint;
312 strideX:uint;
313 strideY:uint;
Matthew Benthamacad04e2019-05-13 10:02:45 +0100314 dilationX:uint = 1;
315 dilationY:uint = 1;
Aron Virginas-Tarc04125f2019-02-19 16:31:08 +0000316 biasEnabled:bool = false;
317 dataLayout:DataLayout = NCHW;
318}
319
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000320table OutputLayer {
321 base:BindableLayerBase;
322}
323
Saoirse Stewart263829c2019-02-19 15:54:14 +0000324table ReshapeLayer {
325 base:LayerBase;
326 descriptor:ReshapeDescriptor;
327}
328
329table ReshapeDescriptor {
330 targetShape:[uint];
331}
332
Nattapat Chaimanowong30b00202019-02-20 17:31:34 +0000333table PermuteLayer {
334 base:LayerBase;
335 descriptor:PermuteDescriptor;
336}
337
338table PermuteDescriptor {
339 dimMappings:[uint];
340}
341
Nattapat Chaimanowong45286992019-02-26 15:53:02 +0000342table SpaceToBatchNdLayer {
343 base:LayerBase;
344 descriptor:SpaceToBatchNdDescriptor;
345}
346
347table SpaceToBatchNdDescriptor {
348 blockShape:[uint];
349 padList:[uint];
350 dataLayout:DataLayout;
351}
352
Aron Virginas-Taraa067142019-06-11 16:01:44 +0100353table SpaceToDepthLayer {
354 base:LayerBase;
355 descriptor:SpaceToDepthDescriptor;
356}
357
358table SpaceToDepthDescriptor {
359 blockSize:uint;
360 dataLayout:DataLayout;
361}
362
Conor Kennedyda1f9752019-03-01 14:37:12 +0000363table SubtractionLayer {
364 base:LayerBase;
365}
366
Nattapat Chaimanowong6b4ed982019-02-26 17:24:13 +0000367table BatchToSpaceNdLayer {
368 base:LayerBase;
369 descriptor:BatchToSpaceNdDescriptor;
370}
371
372table BatchToSpaceNdDescriptor {
373 blockShape:[uint];
374 crops:[uint];
375 dataLayout:DataLayout;
376}
377
Nina Drozd57728782019-02-27 10:53:27 +0000378enum NormalizationAlgorithmChannel : byte {
379 Across = 0,
380 Within = 1
381}
382
383enum NormalizationAlgorithmMethod : byte {
384 LocalBrightness = 0,
385 LocalContrast = 1
386}
387
388table NormalizationLayer {
389 base:LayerBase;
390 descriptor:NormalizationDescriptor;
391}
392
393table NormalizationDescriptor {
394 normChannelType:NormalizationAlgorithmChannel = Across;
395 normMethodType:NormalizationAlgorithmMethod = LocalBrightness;
396 normSize:uint;
397 alpha:float;
398 beta:float;
399 k:float;
400 dataLayout:DataLayout = NCHW;
401}
402
Sadik Armaganac97c8c2019-03-04 17:44:21 +0000403table MeanLayer {
404 base:LayerBase;
405 descriptor:MeanDescriptor;
406}
407
408table MeanDescriptor {
409 axis:[uint];
410 keepDims:bool = false;
411}
412
Nattapat Chaimanowongebb0f9c2019-03-01 12:14:06 +0000413table PadLayer {
414 base:LayerBase;
415 descriptor:PadDescriptor;
416}
417
418table PadDescriptor {
419 padList:[uint];
David Monahan34757812019-06-19 11:47:21 +0100420 padValue:float = 0;
Nattapat Chaimanowongebb0f9c2019-03-01 12:14:06 +0000421}
422
Sadik Armagan8b42a382019-03-01 14:24:49 +0000423table RsqrtLayer {
424 base:LayerBase;
425}
426
ruoyan018e7fa232019-02-28 15:09:07 +0000427table BatchNormalizationLayer {
428 base:LayerBase;
429 descriptor:BatchNormalizationDescriptor;
430 mean:ConstTensor;
431 variance:ConstTensor;
432 beta:ConstTensor;
433 gamma:ConstTensor;
434}
435
436table BatchNormalizationDescriptor {
437 eps:float;
438 dataLayout:DataLayout;
439}
440
Nattapat Chaimanowong6522cdc2019-03-01 16:14:13 +0000441table ResizeBilinearLayer {
442 base:LayerBase;
443 descriptor:ResizeBilinearDescriptor;
444}
445
446table ResizeBilinearDescriptor {
447 targetWidth:uint;
448 targetHeight:uint;
449 dataLayout:DataLayout;
450}
451
Nattapat Chaimanowongb3485212019-03-04 12:35:39 +0000452table StridedSliceLayer {
453 base:LayerBase;
454 descriptor:StridedSliceDescriptor;
455}
456
457table StridedSliceDescriptor {
458 begin:[int];
459 end:[int];
460 stride:[int];
461 beginMask:int;
462 endMask:int;
463 shrinkAxisMask:int;
464 ellipsisMask:int;
465 newAxisMask:int;
466 dataLayout:DataLayout;
467}
468
Jim Flynne242f2d2019-05-22 14:24:13 +0100469table ConcatLayer {
470 base:LayerBase;
471 descriptor:OriginsDescriptor;
472}
473
Jim Flynnac25a1b2019-02-28 10:40:49 +0000474table MergerLayer {
475 base:LayerBase;
476 descriptor:OriginsDescriptor;
477}
478
479table UintVector {
480 data:[uint];
481}
482
483table OriginsDescriptor {
484 concatAxis:uint;
485 numViews:uint;
486 numDimensions:uint;
487 viewOrigins:[UintVector];
488}
489
Jim Flynn18ce3382019-03-08 11:08:30 +0000490table ViewsDescriptor {
491 origins:OriginsDescriptor;
492 viewSizes:[UintVector];
493}
494
495table SplitterLayer {
496 base:LayerBase;
497 descriptor:ViewsDescriptor;
498}
499
Nattapat Chaimanowong3e14a9d2019-03-18 12:37:06 +0000500table DetectionPostProcessLayer {
501 base:LayerBase;
502 descriptor:DetectionPostProcessDescriptor;
503 anchors:ConstTensor;
504}
505
506table DetectionPostProcessDescriptor {
507 maxDetections:uint;
508 maxClassesPerDetection:uint;
509 detectionsPerClass:uint;
510 nmsScoreThreshold:float;
511 nmsIouThreshold:float;
512 numClasses:uint;
513 useRegularNms:bool;
514 scaleX:float;
515 scaleY:float;
516 scaleW:float;
517 scaleH:float;
518}
519
Jim Flynn11af3752019-03-19 17:22:29 +0000520table LstmInputParams {
521 inputToForgetWeights:ConstTensor;
522 inputToCellWeights:ConstTensor;
523 inputToOutputWeights:ConstTensor;
524 recurrentToForgetWeights:ConstTensor;
525 recurrentToCellWeights:ConstTensor;
526 recurrentToOutputWeights:ConstTensor;
527 forgetGateBias:ConstTensor;
528 cellBias:ConstTensor;
529 outputGateBias:ConstTensor;
530
531 inputToInputWeights:ConstTensor;
532 recurrentToInputWeights:ConstTensor;
533 cellToInputWeights:ConstTensor;
534 inputGateBias:ConstTensor;
535
536 projectionWeights:ConstTensor;
537 projectionBias:ConstTensor;
538
539 cellToForgetWeights:ConstTensor;
540 cellToOutputWeights:ConstTensor;
Jan Eilersf8c62972019-07-17 11:07:49 +0100541
542 inputLayerNormWeights:ConstTensor;
543 forgetLayerNormWeights:ConstTensor;
544 cellLayerNormWeights:ConstTensor;
545 outputLayerNormWeights:ConstTensor;
Jim Flynn11af3752019-03-19 17:22:29 +0000546}
547
Jan Eilers5b01a892019-07-23 09:47:43 +0100548table QuantizedLstmInputParams {
549 inputToInputWeights:ConstTensor;
550 inputToForgetWeights:ConstTensor;
551 inputToCellWeights:ConstTensor;
552 inputToOutputWeights:ConstTensor;
553
554 recurrentToInputWeights:ConstTensor;
555 recurrentToForgetWeights:ConstTensor;
556 recurrentToCellWeights:ConstTensor;
557 recurrentToOutputWeights:ConstTensor;
558
559 inputGateBias:ConstTensor;
560 forgetGateBias:ConstTensor;
561 cellBias:ConstTensor;
562 outputGateBias:ConstTensor;
563}
564
Jim Flynn11af3752019-03-19 17:22:29 +0000565table LstmDescriptor {
566 activationFunc:uint;
567 clippingThresCell:float;
568 clippingThresProj:float;
569 cifgEnabled:bool = true;
570 peepholeEnabled:bool = false;
571 projectionEnabled:bool = false;
Jan Eilersf8c62972019-07-17 11:07:49 +0100572 layerNormEnabled:bool = false;
Jim Flynn11af3752019-03-19 17:22:29 +0000573}
574
575table LstmLayer {
576 base:LayerBase;
577 descriptor:LstmDescriptor;
578 inputParams:LstmInputParams;
579}
580
Jan Eilers5b01a892019-07-23 09:47:43 +0100581table QuantizedLstmLayer {
582 base:LayerBase;
583 inputParams:QuantizedLstmInputParams;
584}
585
Nattapat Chaimanowonge4294fd2019-03-28 09:56:53 +0000586table DequantizeLayer {
587 base:LayerBase;
588}
589
Nattapat Chaimanowong1f886302019-04-05 13:37:19 +0100590table MergeLayer {
591 base:LayerBase;
592}
593
Sadik Armaganeff363d2019-04-05 15:25:46 +0100594table SwitchLayer {
595 base:LayerBase;
596}
597
Ellen Norris-Thompson51982472019-06-19 11:46:21 +0100598table PreluLayer {
599 base:LayerBase;
600}
601
Aron Virginas-Tarcb549302019-06-21 13:53:38 +0100602table TransposeConvolution2dLayer {
603 base:LayerBase;
604 descriptor:TransposeConvolution2dDescriptor;
605 weights:ConstTensor;
606 biases:ConstTensor;
607}
608
609table TransposeConvolution2dDescriptor {
610 padLeft:uint;
611 padRight:uint;
612 padTop:uint;
613 padBottom:uint;
614 strideX:uint;
615 strideY:uint;
616 biasEnabled:bool = false;
617 dataLayout:DataLayout = NCHW;
618}
619
FinnWilliamsArm6fb339a2019-06-28 15:07:10 +0100620table ResizeLayer {
621 base:LayerBase;
622 descriptor:ResizeDescriptor;
623}
624
625table ResizeDescriptor {
626 targetHeight:uint;
627 targetWidth:uint;
628 method:ResizeMethod = NearestNeighbor;
629 dataLayout:DataLayout;
630}
631
Matthew Jacksonb5433ee2019-07-11 15:54:20 +0100632table StackLayer {
633 base:LayerBase;
634 descriptor:StackDescriptor;
635}
636
637table StackDescriptor {
638 axis:uint;
639 numInputs:uint;
640 inputShape:[uint];
641}
642
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000643union Layer {
Mike Kellyaf484012019-02-20 16:53:11 +0000644 ActivationLayer,
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000645 AdditionLayer,
Nattapat Chaimanowong6b4ed982019-02-26 17:24:13 +0000646 BatchToSpaceNdLayer,
ruoyan018e7fa232019-02-28 15:09:07 +0000647 BatchNormalizationLayer,
Conor Kennedy76277882019-02-26 08:29:54 +0000648 ConstantLayer,
Mike Kellya0766c32019-02-19 17:22:07 +0000649 Convolution2dLayer,
Aron Virginas-Tarc04125f2019-02-19 16:31:08 +0000650 DepthwiseConvolution2dLayer,
Sadik Armagandbb0c0c2019-02-21 09:01:41 +0000651 FullyConnectedLayer,
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000652 InputLayer,
Sadik Armagan5f450272019-02-12 14:31:45 +0000653 MultiplicationLayer,
Aron Virginas-Tarfc413c02019-02-13 15:41:52 +0000654 OutputLayer,
Nattapat Chaimanowong30b00202019-02-20 17:31:34 +0000655 PermuteLayer,
Saoirse Stewart3166c3e2019-02-18 15:24:53 +0000656 Pooling2dLayer,
Saoirse Stewart263829c2019-02-19 15:54:14 +0000657 ReshapeLayer,
Nattapat Chaimanowong45286992019-02-26 15:53:02 +0000658 SoftmaxLayer,
Éanna Ó Catháin58885892019-02-27 16:16:39 +0000659 SpaceToBatchNdLayer,
Aron Virginas-Tar0fe32452019-02-28 13:12:47 +0000660 DivisionLayer,
Nattapat Chaimanowong235cea52019-02-28 16:27:30 +0000661 MinimumLayer,
Aron Virginas-Tar377351e2019-02-27 14:42:31 +0000662 EqualLayer,
Nina Drozd57728782019-02-27 10:53:27 +0000663 MaximumLayer,
Nattapat Chaimanowongebb0f9c2019-03-01 12:14:06 +0000664 NormalizationLayer,
Sadik Armagan8b42a382019-03-01 14:24:49 +0000665 PadLayer,
Finn Williamsdd2ba7e2019-03-01 11:51:52 +0000666 RsqrtLayer,
Conor Kennedy79ffdf52019-03-01 14:24:54 +0000667 FloorLayer,
Nattapat Chaimanowong6522cdc2019-03-01 16:14:13 +0000668 GreaterLayer,
Conor Kennedyda1f9752019-03-01 14:37:12 +0000669 ResizeBilinearLayer,
Nattapat Chaimanowongb3485212019-03-04 12:35:39 +0000670 SubtractionLayer,
Saoirse Stewarta1ed73a2019-03-04 13:40:12 +0000671 StridedSliceLayer,
Sadik Armaganac97c8c2019-03-04 17:44:21 +0000672 GatherLayer,
Jim Flynnac25a1b2019-02-28 10:40:49 +0000673 MeanLayer,
Narumol Prangnawarat495701f2019-03-07 17:31:34 +0000674 MergerLayer,
Jim Flynn18ce3382019-03-08 11:08:30 +0000675 L2NormalizationLayer,
Nattapat Chaimanowong3e14a9d2019-03-18 12:37:06 +0000676 SplitterLayer,
Jim Flynn11af3752019-03-19 17:22:29 +0000677 DetectionPostProcessLayer,
Derek Lamberti87acb272019-03-27 16:51:31 +0000678 LstmLayer,
Jan Eilers5b01a892019-07-23 09:47:43 +0100679 QuantizedLstmLayer,
Nattapat Chaimanowonge4294fd2019-03-28 09:56:53 +0000680 QuantizeLayer,
Nattapat Chaimanowong1f886302019-04-05 13:37:19 +0100681 DequantizeLayer,
Sadik Armaganeff363d2019-04-05 15:25:46 +0100682 MergeLayer,
Jim Flynne242f2d2019-05-22 14:24:13 +0100683 SwitchLayer,
Aron Virginas-Taraa067142019-06-11 16:01:44 +0100684 ConcatLayer,
Ellen Norris-Thompson51982472019-06-19 11:46:21 +0100685 SpaceToDepthLayer,
Aron Virginas-Tarcb549302019-06-21 13:53:38 +0100686 PreluLayer,
FinnWilliamsArm6fb339a2019-06-28 15:07:10 +0100687 TransposeConvolution2dLayer,
Matthew Jacksonb5433ee2019-07-11 15:54:20 +0100688 ResizeLayer,
689 StackLayer
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000690}
691
Saoirse Stewart49dbe0e2019-02-05 17:27:06 +0000692table AnyLayer {
693 layer:Layer;
694}
695
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000696// Root type for serialized data is the graph of the network
697table SerializedGraph {
Saoirse Stewart49dbe0e2019-02-05 17:27:06 +0000698 layers:[AnyLayer];
Mike Kelly8c1701a2019-02-11 17:01:27 +0000699 inputIds:[uint];
700 outputIds:[uint];
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000701}
702
703root_type SerializedGraph;