blob: 0fd8da7e8f353af4053a44d6ca75990fe639e287 [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,
134 Stack = 44
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000135}
136
137// Base layer table to be used as part of other layers
138table LayerBase {
139 index:uint;
140 layerName:string;
141 layerType:LayerType;
142 inputSlots:[InputSlot];
143 outputSlots:[OutputSlot];
144}
145
146table BindableLayerBase {
147 base:LayerBase;
148 layerBindingId:int;
149}
150
151// Table for each layer defined below
Mike Kellyaf484012019-02-20 16:53:11 +0000152table ActivationLayer {
153 base:LayerBase;
154 descriptor:ActivationDescriptor;
155}
156
157table ActivationDescriptor {
158 function:ActivationFunction = Sigmoid;
159 a:float;
160 b:float;
161}
162
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000163table AdditionLayer {
164 base:LayerBase;
165}
166
Conor Kennedy76277882019-02-26 08:29:54 +0000167table ConstantLayer {
168 base:LayerBase;
169 input:ConstTensor;
170}
171
Mike Kellya0766c32019-02-19 17:22:07 +0000172table Convolution2dLayer {
173 base:LayerBase;
174 descriptor:Convolution2dDescriptor;
175 weights:ConstTensor;
176 biases:ConstTensor;
177}
178
179table Convolution2dDescriptor {
180 padLeft:uint;
181 padRight:uint;
182 padTop:uint;
183 padBottom:uint;
184 strideX:uint;
185 strideY:uint;
Matthew Benthamacad04e2019-05-13 10:02:45 +0100186 dilationX:uint = 1;
187 dilationY:uint = 1;
Mike Kellya0766c32019-02-19 17:22:07 +0000188 biasEnabled:bool = false;
189 dataLayout:DataLayout = NCHW;
190}
191
Éanna Ó Catháin58885892019-02-27 16:16:39 +0000192table DivisionLayer {
193 base:LayerBase;
194}
195
Nattapat Chaimanowong235cea52019-02-28 16:27:30 +0000196table EqualLayer {
197 base:LayerBase;
198}
199
Finn Williamsdd2ba7e2019-03-01 11:51:52 +0000200table FloorLayer{
201 base:LayerBase;
202}
203
Sadik Armagandbb0c0c2019-02-21 09:01:41 +0000204table FullyConnectedLayer {
205 base:LayerBase;
206 descriptor:FullyConnectedDescriptor;
207 weights:ConstTensor;
208 biases:ConstTensor;
209}
210
211table FullyConnectedDescriptor {
212 biasEnabled:bool = false;
213 transposeWeightsMatrix:bool = false;
214}
215
Saoirse Stewarta1ed73a2019-03-04 13:40:12 +0000216table GatherLayer {
217 base:LayerBase;
218}
219
Conor Kennedy79ffdf52019-03-01 14:24:54 +0000220table GreaterLayer {
221 base:LayerBase;
222}
223
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000224table InputLayer {
225 base:BindableLayerBase;
226}
227
Narumol Prangnawarat495701f2019-03-07 17:31:34 +0000228table L2NormalizationLayer {
229 base:LayerBase;
230 descriptor:L2NormalizationDescriptor;
231}
232
233table L2NormalizationDescriptor {
234 dataLayout:DataLayout = NCHW;
Ferran Balaguer0dcffec2019-06-18 16:25:06 +0100235 eps:float = 1e-12;
Narumol Prangnawarat495701f2019-03-07 17:31:34 +0000236}
237
Aron Virginas-Tar0fe32452019-02-28 13:12:47 +0000238table MinimumLayer {
239 base:LayerBase;
240}
241
Aron Virginas-Tar377351e2019-02-27 14:42:31 +0000242table MaximumLayer {
243 base:LayerBase;
244}
245
Sadik Armagan5f450272019-02-12 14:31:45 +0000246table MultiplicationLayer {
247 base:LayerBase;
248}
249
Saoirse Stewart3166c3e2019-02-18 15:24:53 +0000250table Pooling2dLayer {
251 base:LayerBase;
252 descriptor:Pooling2dDescriptor;
253}
254
255enum PoolingAlgorithm : byte {
256 Max = 0,
257 Average = 1,
258 L2 = 2
259}
260
261enum OutputShapeRounding : byte {
262 Floor = 0,
263 Ceiling = 1
264}
265
266enum PaddingMethod : byte {
267 IgnoreValue = 0,
268 Exclude = 1
269}
270
271table Pooling2dDescriptor {
272 poolType:PoolingAlgorithm;
273 padLeft:uint;
274 padRight:uint;
275 padTop:uint;
276 padBottom:uint;
277 poolWidth:uint;
278 poolHeight:uint;
279 strideX:uint;
280 strideY:uint;
281 outputShapeRounding:OutputShapeRounding;
282 paddingMethod:PaddingMethod;
283 dataLayout:DataLayout;
284}
285
Derek Lamberti87acb272019-03-27 16:51:31 +0000286table QuantizeLayer {
287 base:LayerBase;
288}
289
Aron Virginas-Tarfc413c02019-02-13 15:41:52 +0000290table SoftmaxLayer {
291 base:LayerBase;
292 descriptor:SoftmaxDescriptor;
293}
294
295table SoftmaxDescriptor {
296 beta:float;
297}
298
Aron Virginas-Tarc04125f2019-02-19 16:31:08 +0000299table DepthwiseConvolution2dLayer {
300 base:LayerBase;
301 descriptor:DepthwiseConvolution2dDescriptor;
302 weights:ConstTensor;
303 biases:ConstTensor;
304}
305
306table DepthwiseConvolution2dDescriptor {
307 padLeft:uint;
308 padRight:uint;
309 padTop:uint;
310 padBottom:uint;
311 strideX:uint;
312 strideY:uint;
Matthew Benthamacad04e2019-05-13 10:02:45 +0100313 dilationX:uint = 1;
314 dilationY:uint = 1;
Aron Virginas-Tarc04125f2019-02-19 16:31:08 +0000315 biasEnabled:bool = false;
316 dataLayout:DataLayout = NCHW;
317}
318
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000319table OutputLayer {
320 base:BindableLayerBase;
321}
322
Saoirse Stewart263829c2019-02-19 15:54:14 +0000323table ReshapeLayer {
324 base:LayerBase;
325 descriptor:ReshapeDescriptor;
326}
327
328table ReshapeDescriptor {
329 targetShape:[uint];
330}
331
Nattapat Chaimanowong30b00202019-02-20 17:31:34 +0000332table PermuteLayer {
333 base:LayerBase;
334 descriptor:PermuteDescriptor;
335}
336
337table PermuteDescriptor {
338 dimMappings:[uint];
339}
340
Nattapat Chaimanowong45286992019-02-26 15:53:02 +0000341table SpaceToBatchNdLayer {
342 base:LayerBase;
343 descriptor:SpaceToBatchNdDescriptor;
344}
345
346table SpaceToBatchNdDescriptor {
347 blockShape:[uint];
348 padList:[uint];
349 dataLayout:DataLayout;
350}
351
Aron Virginas-Taraa067142019-06-11 16:01:44 +0100352table SpaceToDepthLayer {
353 base:LayerBase;
354 descriptor:SpaceToDepthDescriptor;
355}
356
357table SpaceToDepthDescriptor {
358 blockSize:uint;
359 dataLayout:DataLayout;
360}
361
Conor Kennedyda1f9752019-03-01 14:37:12 +0000362table SubtractionLayer {
363 base:LayerBase;
364}
365
Nattapat Chaimanowong6b4ed982019-02-26 17:24:13 +0000366table BatchToSpaceNdLayer {
367 base:LayerBase;
368 descriptor:BatchToSpaceNdDescriptor;
369}
370
371table BatchToSpaceNdDescriptor {
372 blockShape:[uint];
373 crops:[uint];
374 dataLayout:DataLayout;
375}
376
Nina Drozd57728782019-02-27 10:53:27 +0000377enum NormalizationAlgorithmChannel : byte {
378 Across = 0,
379 Within = 1
380}
381
382enum NormalizationAlgorithmMethod : byte {
383 LocalBrightness = 0,
384 LocalContrast = 1
385}
386
387table NormalizationLayer {
388 base:LayerBase;
389 descriptor:NormalizationDescriptor;
390}
391
392table NormalizationDescriptor {
393 normChannelType:NormalizationAlgorithmChannel = Across;
394 normMethodType:NormalizationAlgorithmMethod = LocalBrightness;
395 normSize:uint;
396 alpha:float;
397 beta:float;
398 k:float;
399 dataLayout:DataLayout = NCHW;
400}
401
Sadik Armaganac97c8c2019-03-04 17:44:21 +0000402table MeanLayer {
403 base:LayerBase;
404 descriptor:MeanDescriptor;
405}
406
407table MeanDescriptor {
408 axis:[uint];
409 keepDims:bool = false;
410}
411
Nattapat Chaimanowongebb0f9c2019-03-01 12:14:06 +0000412table PadLayer {
413 base:LayerBase;
414 descriptor:PadDescriptor;
415}
416
417table PadDescriptor {
418 padList:[uint];
David Monahan34757812019-06-19 11:47:21 +0100419 padValue:float = 0;
Nattapat Chaimanowongebb0f9c2019-03-01 12:14:06 +0000420}
421
Sadik Armagan8b42a382019-03-01 14:24:49 +0000422table RsqrtLayer {
423 base:LayerBase;
424}
425
ruoyan018e7fa232019-02-28 15:09:07 +0000426table BatchNormalizationLayer {
427 base:LayerBase;
428 descriptor:BatchNormalizationDescriptor;
429 mean:ConstTensor;
430 variance:ConstTensor;
431 beta:ConstTensor;
432 gamma:ConstTensor;
433}
434
435table BatchNormalizationDescriptor {
436 eps:float;
437 dataLayout:DataLayout;
438}
439
Nattapat Chaimanowong6522cdc2019-03-01 16:14:13 +0000440table ResizeBilinearLayer {
441 base:LayerBase;
442 descriptor:ResizeBilinearDescriptor;
443}
444
445table ResizeBilinearDescriptor {
446 targetWidth:uint;
447 targetHeight:uint;
448 dataLayout:DataLayout;
449}
450
Nattapat Chaimanowongb3485212019-03-04 12:35:39 +0000451table StridedSliceLayer {
452 base:LayerBase;
453 descriptor:StridedSliceDescriptor;
454}
455
456table StridedSliceDescriptor {
457 begin:[int];
458 end:[int];
459 stride:[int];
460 beginMask:int;
461 endMask:int;
462 shrinkAxisMask:int;
463 ellipsisMask:int;
464 newAxisMask:int;
465 dataLayout:DataLayout;
466}
467
Jim Flynne242f2d2019-05-22 14:24:13 +0100468table ConcatLayer {
469 base:LayerBase;
470 descriptor:OriginsDescriptor;
471}
472
Jim Flynnac25a1b2019-02-28 10:40:49 +0000473table MergerLayer {
474 base:LayerBase;
475 descriptor:OriginsDescriptor;
476}
477
478table UintVector {
479 data:[uint];
480}
481
482table OriginsDescriptor {
483 concatAxis:uint;
484 numViews:uint;
485 numDimensions:uint;
486 viewOrigins:[UintVector];
487}
488
Jim Flynn18ce3382019-03-08 11:08:30 +0000489table ViewsDescriptor {
490 origins:OriginsDescriptor;
491 viewSizes:[UintVector];
492}
493
494table SplitterLayer {
495 base:LayerBase;
496 descriptor:ViewsDescriptor;
497}
498
Nattapat Chaimanowong3e14a9d2019-03-18 12:37:06 +0000499table DetectionPostProcessLayer {
500 base:LayerBase;
501 descriptor:DetectionPostProcessDescriptor;
502 anchors:ConstTensor;
503}
504
505table DetectionPostProcessDescriptor {
506 maxDetections:uint;
507 maxClassesPerDetection:uint;
508 detectionsPerClass:uint;
509 nmsScoreThreshold:float;
510 nmsIouThreshold:float;
511 numClasses:uint;
512 useRegularNms:bool;
513 scaleX:float;
514 scaleY:float;
515 scaleW:float;
516 scaleH:float;
517}
518
Jim Flynn11af3752019-03-19 17:22:29 +0000519table LstmInputParams {
520 inputToForgetWeights:ConstTensor;
521 inputToCellWeights:ConstTensor;
522 inputToOutputWeights:ConstTensor;
523 recurrentToForgetWeights:ConstTensor;
524 recurrentToCellWeights:ConstTensor;
525 recurrentToOutputWeights:ConstTensor;
526 forgetGateBias:ConstTensor;
527 cellBias:ConstTensor;
528 outputGateBias:ConstTensor;
529
530 inputToInputWeights:ConstTensor;
531 recurrentToInputWeights:ConstTensor;
532 cellToInputWeights:ConstTensor;
533 inputGateBias:ConstTensor;
534
535 projectionWeights:ConstTensor;
536 projectionBias:ConstTensor;
537
538 cellToForgetWeights:ConstTensor;
539 cellToOutputWeights:ConstTensor;
Jan Eilersf8c62972019-07-17 11:07:49 +0100540
541 inputLayerNormWeights:ConstTensor;
542 forgetLayerNormWeights:ConstTensor;
543 cellLayerNormWeights:ConstTensor;
544 outputLayerNormWeights:ConstTensor;
Jim Flynn11af3752019-03-19 17:22:29 +0000545}
546
547table LstmDescriptor {
548 activationFunc:uint;
549 clippingThresCell:float;
550 clippingThresProj:float;
551 cifgEnabled:bool = true;
552 peepholeEnabled:bool = false;
553 projectionEnabled:bool = false;
Jan Eilersf8c62972019-07-17 11:07:49 +0100554 layerNormEnabled:bool = false;
Jim Flynn11af3752019-03-19 17:22:29 +0000555}
556
557table LstmLayer {
558 base:LayerBase;
559 descriptor:LstmDescriptor;
560 inputParams:LstmInputParams;
561}
562
Nattapat Chaimanowonge4294fd2019-03-28 09:56:53 +0000563table DequantizeLayer {
564 base:LayerBase;
565}
566
Nattapat Chaimanowong1f886302019-04-05 13:37:19 +0100567table MergeLayer {
568 base:LayerBase;
569}
570
Sadik Armaganeff363d2019-04-05 15:25:46 +0100571table SwitchLayer {
572 base:LayerBase;
573}
574
Ellen Norris-Thompson51982472019-06-19 11:46:21 +0100575table PreluLayer {
576 base:LayerBase;
577}
578
Aron Virginas-Tarcb549302019-06-21 13:53:38 +0100579table TransposeConvolution2dLayer {
580 base:LayerBase;
581 descriptor:TransposeConvolution2dDescriptor;
582 weights:ConstTensor;
583 biases:ConstTensor;
584}
585
586table TransposeConvolution2dDescriptor {
587 padLeft:uint;
588 padRight:uint;
589 padTop:uint;
590 padBottom:uint;
591 strideX:uint;
592 strideY:uint;
593 biasEnabled:bool = false;
594 dataLayout:DataLayout = NCHW;
595}
596
FinnWilliamsArm6fb339a2019-06-28 15:07:10 +0100597table ResizeLayer {
598 base:LayerBase;
599 descriptor:ResizeDescriptor;
600}
601
602table ResizeDescriptor {
603 targetHeight:uint;
604 targetWidth:uint;
605 method:ResizeMethod = NearestNeighbor;
606 dataLayout:DataLayout;
607}
608
Matthew Jacksonb5433ee2019-07-11 15:54:20 +0100609table StackLayer {
610 base:LayerBase;
611 descriptor:StackDescriptor;
612}
613
614table StackDescriptor {
615 axis:uint;
616 numInputs:uint;
617 inputShape:[uint];
618}
619
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000620union Layer {
Mike Kellyaf484012019-02-20 16:53:11 +0000621 ActivationLayer,
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000622 AdditionLayer,
Nattapat Chaimanowong6b4ed982019-02-26 17:24:13 +0000623 BatchToSpaceNdLayer,
ruoyan018e7fa232019-02-28 15:09:07 +0000624 BatchNormalizationLayer,
Conor Kennedy76277882019-02-26 08:29:54 +0000625 ConstantLayer,
Mike Kellya0766c32019-02-19 17:22:07 +0000626 Convolution2dLayer,
Aron Virginas-Tarc04125f2019-02-19 16:31:08 +0000627 DepthwiseConvolution2dLayer,
Sadik Armagandbb0c0c2019-02-21 09:01:41 +0000628 FullyConnectedLayer,
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000629 InputLayer,
Sadik Armagan5f450272019-02-12 14:31:45 +0000630 MultiplicationLayer,
Aron Virginas-Tarfc413c02019-02-13 15:41:52 +0000631 OutputLayer,
Nattapat Chaimanowong30b00202019-02-20 17:31:34 +0000632 PermuteLayer,
Saoirse Stewart3166c3e2019-02-18 15:24:53 +0000633 Pooling2dLayer,
Saoirse Stewart263829c2019-02-19 15:54:14 +0000634 ReshapeLayer,
Nattapat Chaimanowong45286992019-02-26 15:53:02 +0000635 SoftmaxLayer,
Éanna Ó Catháin58885892019-02-27 16:16:39 +0000636 SpaceToBatchNdLayer,
Aron Virginas-Tar0fe32452019-02-28 13:12:47 +0000637 DivisionLayer,
Nattapat Chaimanowong235cea52019-02-28 16:27:30 +0000638 MinimumLayer,
Aron Virginas-Tar377351e2019-02-27 14:42:31 +0000639 EqualLayer,
Nina Drozd57728782019-02-27 10:53:27 +0000640 MaximumLayer,
Nattapat Chaimanowongebb0f9c2019-03-01 12:14:06 +0000641 NormalizationLayer,
Sadik Armagan8b42a382019-03-01 14:24:49 +0000642 PadLayer,
Finn Williamsdd2ba7e2019-03-01 11:51:52 +0000643 RsqrtLayer,
Conor Kennedy79ffdf52019-03-01 14:24:54 +0000644 FloorLayer,
Nattapat Chaimanowong6522cdc2019-03-01 16:14:13 +0000645 GreaterLayer,
Conor Kennedyda1f9752019-03-01 14:37:12 +0000646 ResizeBilinearLayer,
Nattapat Chaimanowongb3485212019-03-04 12:35:39 +0000647 SubtractionLayer,
Saoirse Stewarta1ed73a2019-03-04 13:40:12 +0000648 StridedSliceLayer,
Sadik Armaganac97c8c2019-03-04 17:44:21 +0000649 GatherLayer,
Jim Flynnac25a1b2019-02-28 10:40:49 +0000650 MeanLayer,
Narumol Prangnawarat495701f2019-03-07 17:31:34 +0000651 MergerLayer,
Jim Flynn18ce3382019-03-08 11:08:30 +0000652 L2NormalizationLayer,
Nattapat Chaimanowong3e14a9d2019-03-18 12:37:06 +0000653 SplitterLayer,
Jim Flynn11af3752019-03-19 17:22:29 +0000654 DetectionPostProcessLayer,
Derek Lamberti87acb272019-03-27 16:51:31 +0000655 LstmLayer,
Nattapat Chaimanowonge4294fd2019-03-28 09:56:53 +0000656 QuantizeLayer,
Nattapat Chaimanowong1f886302019-04-05 13:37:19 +0100657 DequantizeLayer,
Sadik Armaganeff363d2019-04-05 15:25:46 +0100658 MergeLayer,
Jim Flynne242f2d2019-05-22 14:24:13 +0100659 SwitchLayer,
Aron Virginas-Taraa067142019-06-11 16:01:44 +0100660 ConcatLayer,
Ellen Norris-Thompson51982472019-06-19 11:46:21 +0100661 SpaceToDepthLayer,
Aron Virginas-Tarcb549302019-06-21 13:53:38 +0100662 PreluLayer,
FinnWilliamsArm6fb339a2019-06-28 15:07:10 +0100663 TransposeConvolution2dLayer,
Matthew Jacksonb5433ee2019-07-11 15:54:20 +0100664 ResizeLayer,
665 StackLayer
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000666}
667
Saoirse Stewart49dbe0e2019-02-05 17:27:06 +0000668table AnyLayer {
669 layer:Layer;
670}
671
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000672// Root type for serialized data is the graph of the network
673table SerializedGraph {
Saoirse Stewart49dbe0e2019-02-05 17:27:06 +0000674 layers:[AnyLayer];
Mike Kelly8c1701a2019-02-11 17:01:27 +0000675 inputIds:[uint];
676 outputIds:[uint];
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000677}
678
679root_type SerializedGraph;