blob: 7969d105987935597538c3a579256d846926d5ee [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
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +000039table TensorInfo {
40 dimensions:[uint];
41 dataType:DataType;
42 quantizationScale:float = 1.0;
43 quantizationOffset:int = 0;
44}
45
46struct Connection {
47 sourceLayerIndex:uint;
48 outputSlotIndex:uint;
49}
50
51table ByteData {
52 data:[byte];
53}
54
55table ShortData {
56 data:[short];
57}
58
59table IntData {
60 data:[int];
61}
62
63table LongData {
64 data:[long];
65}
66
67union ConstTensorData { ByteData, ShortData, IntData, LongData }
68
69table ConstTensor {
70 info:TensorInfo;
71 data:ConstTensorData;
72}
73
74table InputSlot {
75 index:uint;
76 connection:Connection;
77}
78
79table OutputSlot {
80 index:uint;
81 tensorInfo:TensorInfo;
82}
83
84enum LayerType : uint {
85 Addition = 0,
86 Input = 1,
Sadik Armagan5f450272019-02-12 14:31:45 +000087 Multiplication = 2,
Aron Virginas-Tarfc413c02019-02-13 15:41:52 +000088 Output = 3,
Saoirse Stewart3166c3e2019-02-18 15:24:53 +000089 Pooling2d = 4,
Saoirse Stewart263829c2019-02-19 15:54:14 +000090 Reshape = 5,
Mike Kellya0766c32019-02-19 17:22:07 +000091 Softmax = 6,
Aron Virginas-Tarc04125f2019-02-19 16:31:08 +000092 Convolution2d = 7,
Mike Kellyaf484012019-02-20 16:53:11 +000093 DepthwiseConvolution2d = 8,
Nattapat Chaimanowong30b00202019-02-20 17:31:34 +000094 Activation = 9,
Sadik Armagandbb0c0c2019-02-21 09:01:41 +000095 Permute = 10,
Conor Kennedy76277882019-02-26 08:29:54 +000096 FullyConnected = 11,
Nattapat Chaimanowong45286992019-02-26 15:53:02 +000097 Constant = 12,
Nattapat Chaimanowong6b4ed982019-02-26 17:24:13 +000098 SpaceToBatchNd = 13,
Éanna Ó Catháin58885892019-02-27 16:16:39 +000099 BatchToSpaceNd = 14,
Aron Virginas-Tar0fe32452019-02-28 13:12:47 +0000100 Division = 15,
Nattapat Chaimanowong235cea52019-02-28 16:27:30 +0000101 Minimum = 16,
Aron Virginas-Tar377351e2019-02-27 14:42:31 +0000102 Equal = 17,
Nina Drozd57728782019-02-27 10:53:27 +0000103 Maximum = 18,
Nattapat Chaimanowongebb0f9c2019-03-01 12:14:06 +0000104 Normalization = 19,
Sadik Armagan8b42a382019-03-01 14:24:49 +0000105 Pad = 20,
Finn Williamsdd2ba7e2019-03-01 11:51:52 +0000106 Rsqrt = 21,
ruoyan018e7fa232019-02-28 15:09:07 +0000107 Floor = 22,
Conor Kennedy79ffdf52019-03-01 14:24:54 +0000108 BatchNormalization = 23,
Nattapat Chaimanowong6522cdc2019-03-01 16:14:13 +0000109 Greater = 24,
Conor Kennedyda1f9752019-03-01 14:37:12 +0000110 ResizeBilinear = 25,
Nattapat Chaimanowongb3485212019-03-04 12:35:39 +0000111 Subtraction = 26,
Saoirse Stewarta1ed73a2019-03-04 13:40:12 +0000112 StridedSlice = 27,
Sadik Armaganac97c8c2019-03-04 17:44:21 +0000113 Gather = 28,
Jim Flynnac25a1b2019-02-28 10:40:49 +0000114 Mean = 29,
Narumol Prangnawarat495701f2019-03-07 17:31:34 +0000115 Merger = 30,
Jim Flynn18ce3382019-03-08 11:08:30 +0000116 L2Normalization = 31,
Nattapat Chaimanowong3e14a9d2019-03-18 12:37:06 +0000117 Splitter = 32,
Jim Flynn11af3752019-03-19 17:22:29 +0000118 DetectionPostProcess = 33,
Derek Lamberti87acb272019-03-27 16:51:31 +0000119 Lstm = 34,
Nattapat Chaimanowonge4294fd2019-03-28 09:56:53 +0000120 Quantize = 35,
Nattapat Chaimanowong1f886302019-04-05 13:37:19 +0100121 Dequantize = 36,
Sadik Armaganeff363d2019-04-05 15:25:46 +0100122 Merge = 37,
Jim Flynne242f2d2019-05-22 14:24:13 +0100123 Switch = 38,
Aron Virginas-Taraa067142019-06-11 16:01:44 +0100124 Concat = 39,
Ellen Norris-Thompson51982472019-06-19 11:46:21 +0100125 SpaceToDepth = 40,
Aron Virginas-Tarcb549302019-06-21 13:53:38 +0100126 Prelu = 41,
127 TransposeConvolution2d = 42
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000128}
129
130// Base layer table to be used as part of other layers
131table LayerBase {
132 index:uint;
133 layerName:string;
134 layerType:LayerType;
135 inputSlots:[InputSlot];
136 outputSlots:[OutputSlot];
137}
138
139table BindableLayerBase {
140 base:LayerBase;
141 layerBindingId:int;
142}
143
144// Table for each layer defined below
Mike Kellyaf484012019-02-20 16:53:11 +0000145table ActivationLayer {
146 base:LayerBase;
147 descriptor:ActivationDescriptor;
148}
149
150table ActivationDescriptor {
151 function:ActivationFunction = Sigmoid;
152 a:float;
153 b:float;
154}
155
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000156table AdditionLayer {
157 base:LayerBase;
158}
159
Conor Kennedy76277882019-02-26 08:29:54 +0000160table ConstantLayer {
161 base:LayerBase;
162 input:ConstTensor;
163}
164
Mike Kellya0766c32019-02-19 17:22:07 +0000165table Convolution2dLayer {
166 base:LayerBase;
167 descriptor:Convolution2dDescriptor;
168 weights:ConstTensor;
169 biases:ConstTensor;
170}
171
172table Convolution2dDescriptor {
173 padLeft:uint;
174 padRight:uint;
175 padTop:uint;
176 padBottom:uint;
177 strideX:uint;
178 strideY:uint;
Matthew Benthamacad04e2019-05-13 10:02:45 +0100179 dilationX:uint = 1;
180 dilationY:uint = 1;
Mike Kellya0766c32019-02-19 17:22:07 +0000181 biasEnabled:bool = false;
182 dataLayout:DataLayout = NCHW;
183}
184
Éanna Ó Catháin58885892019-02-27 16:16:39 +0000185table DivisionLayer {
186 base:LayerBase;
187}
188
Nattapat Chaimanowong235cea52019-02-28 16:27:30 +0000189table EqualLayer {
190 base:LayerBase;
191}
192
Finn Williamsdd2ba7e2019-03-01 11:51:52 +0000193table FloorLayer{
194 base:LayerBase;
195}
196
Sadik Armagandbb0c0c2019-02-21 09:01:41 +0000197table FullyConnectedLayer {
198 base:LayerBase;
199 descriptor:FullyConnectedDescriptor;
200 weights:ConstTensor;
201 biases:ConstTensor;
202}
203
204table FullyConnectedDescriptor {
205 biasEnabled:bool = false;
206 transposeWeightsMatrix:bool = false;
207}
208
Saoirse Stewarta1ed73a2019-03-04 13:40:12 +0000209table GatherLayer {
210 base:LayerBase;
211}
212
Conor Kennedy79ffdf52019-03-01 14:24:54 +0000213table GreaterLayer {
214 base:LayerBase;
215}
216
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000217table InputLayer {
218 base:BindableLayerBase;
219}
220
Narumol Prangnawarat495701f2019-03-07 17:31:34 +0000221table L2NormalizationLayer {
222 base:LayerBase;
223 descriptor:L2NormalizationDescriptor;
224}
225
226table L2NormalizationDescriptor {
227 dataLayout:DataLayout = NCHW;
Ferran Balaguer0dcffec2019-06-18 16:25:06 +0100228 eps:float = 1e-12;
Narumol Prangnawarat495701f2019-03-07 17:31:34 +0000229}
230
Aron Virginas-Tar0fe32452019-02-28 13:12:47 +0000231table MinimumLayer {
232 base:LayerBase;
233}
234
Aron Virginas-Tar377351e2019-02-27 14:42:31 +0000235table MaximumLayer {
236 base:LayerBase;
237}
238
Sadik Armagan5f450272019-02-12 14:31:45 +0000239table MultiplicationLayer {
240 base:LayerBase;
241}
242
Saoirse Stewart3166c3e2019-02-18 15:24:53 +0000243table Pooling2dLayer {
244 base:LayerBase;
245 descriptor:Pooling2dDescriptor;
246}
247
248enum PoolingAlgorithm : byte {
249 Max = 0,
250 Average = 1,
251 L2 = 2
252}
253
254enum OutputShapeRounding : byte {
255 Floor = 0,
256 Ceiling = 1
257}
258
259enum PaddingMethod : byte {
260 IgnoreValue = 0,
261 Exclude = 1
262}
263
264table Pooling2dDescriptor {
265 poolType:PoolingAlgorithm;
266 padLeft:uint;
267 padRight:uint;
268 padTop:uint;
269 padBottom:uint;
270 poolWidth:uint;
271 poolHeight:uint;
272 strideX:uint;
273 strideY:uint;
274 outputShapeRounding:OutputShapeRounding;
275 paddingMethod:PaddingMethod;
276 dataLayout:DataLayout;
277}
278
Derek Lamberti87acb272019-03-27 16:51:31 +0000279table QuantizeLayer {
280 base:LayerBase;
281}
282
Aron Virginas-Tarfc413c02019-02-13 15:41:52 +0000283table SoftmaxLayer {
284 base:LayerBase;
285 descriptor:SoftmaxDescriptor;
286}
287
288table SoftmaxDescriptor {
289 beta:float;
290}
291
Aron Virginas-Tarc04125f2019-02-19 16:31:08 +0000292table DepthwiseConvolution2dLayer {
293 base:LayerBase;
294 descriptor:DepthwiseConvolution2dDescriptor;
295 weights:ConstTensor;
296 biases:ConstTensor;
297}
298
299table DepthwiseConvolution2dDescriptor {
300 padLeft:uint;
301 padRight:uint;
302 padTop:uint;
303 padBottom:uint;
304 strideX:uint;
305 strideY:uint;
Matthew Benthamacad04e2019-05-13 10:02:45 +0100306 dilationX:uint = 1;
307 dilationY:uint = 1;
Aron Virginas-Tarc04125f2019-02-19 16:31:08 +0000308 biasEnabled:bool = false;
309 dataLayout:DataLayout = NCHW;
310}
311
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000312table OutputLayer {
313 base:BindableLayerBase;
314}
315
Saoirse Stewart263829c2019-02-19 15:54:14 +0000316table ReshapeLayer {
317 base:LayerBase;
318 descriptor:ReshapeDescriptor;
319}
320
321table ReshapeDescriptor {
322 targetShape:[uint];
323}
324
Nattapat Chaimanowong30b00202019-02-20 17:31:34 +0000325table PermuteLayer {
326 base:LayerBase;
327 descriptor:PermuteDescriptor;
328}
329
330table PermuteDescriptor {
331 dimMappings:[uint];
332}
333
Nattapat Chaimanowong45286992019-02-26 15:53:02 +0000334table SpaceToBatchNdLayer {
335 base:LayerBase;
336 descriptor:SpaceToBatchNdDescriptor;
337}
338
339table SpaceToBatchNdDescriptor {
340 blockShape:[uint];
341 padList:[uint];
342 dataLayout:DataLayout;
343}
344
Aron Virginas-Taraa067142019-06-11 16:01:44 +0100345table SpaceToDepthLayer {
346 base:LayerBase;
347 descriptor:SpaceToDepthDescriptor;
348}
349
350table SpaceToDepthDescriptor {
351 blockSize:uint;
352 dataLayout:DataLayout;
353}
354
Conor Kennedyda1f9752019-03-01 14:37:12 +0000355table SubtractionLayer {
356 base:LayerBase;
357}
358
Nattapat Chaimanowong6b4ed982019-02-26 17:24:13 +0000359table BatchToSpaceNdLayer {
360 base:LayerBase;
361 descriptor:BatchToSpaceNdDescriptor;
362}
363
364table BatchToSpaceNdDescriptor {
365 blockShape:[uint];
366 crops:[uint];
367 dataLayout:DataLayout;
368}
369
Nina Drozd57728782019-02-27 10:53:27 +0000370enum NormalizationAlgorithmChannel : byte {
371 Across = 0,
372 Within = 1
373}
374
375enum NormalizationAlgorithmMethod : byte {
376 LocalBrightness = 0,
377 LocalContrast = 1
378}
379
380table NormalizationLayer {
381 base:LayerBase;
382 descriptor:NormalizationDescriptor;
383}
384
385table NormalizationDescriptor {
386 normChannelType:NormalizationAlgorithmChannel = Across;
387 normMethodType:NormalizationAlgorithmMethod = LocalBrightness;
388 normSize:uint;
389 alpha:float;
390 beta:float;
391 k:float;
392 dataLayout:DataLayout = NCHW;
393}
394
Sadik Armaganac97c8c2019-03-04 17:44:21 +0000395table MeanLayer {
396 base:LayerBase;
397 descriptor:MeanDescriptor;
398}
399
400table MeanDescriptor {
401 axis:[uint];
402 keepDims:bool = false;
403}
404
Nattapat Chaimanowongebb0f9c2019-03-01 12:14:06 +0000405table PadLayer {
406 base:LayerBase;
407 descriptor:PadDescriptor;
408}
409
410table PadDescriptor {
411 padList:[uint];
David Monahan34757812019-06-19 11:47:21 +0100412 padValue:float = 0;
Nattapat Chaimanowongebb0f9c2019-03-01 12:14:06 +0000413}
414
Sadik Armagan8b42a382019-03-01 14:24:49 +0000415table RsqrtLayer {
416 base:LayerBase;
417}
418
ruoyan018e7fa232019-02-28 15:09:07 +0000419table BatchNormalizationLayer {
420 base:LayerBase;
421 descriptor:BatchNormalizationDescriptor;
422 mean:ConstTensor;
423 variance:ConstTensor;
424 beta:ConstTensor;
425 gamma:ConstTensor;
426}
427
428table BatchNormalizationDescriptor {
429 eps:float;
430 dataLayout:DataLayout;
431}
432
Nattapat Chaimanowong6522cdc2019-03-01 16:14:13 +0000433table ResizeBilinearLayer {
434 base:LayerBase;
435 descriptor:ResizeBilinearDescriptor;
436}
437
438table ResizeBilinearDescriptor {
439 targetWidth:uint;
440 targetHeight:uint;
441 dataLayout:DataLayout;
442}
443
Nattapat Chaimanowongb3485212019-03-04 12:35:39 +0000444table StridedSliceLayer {
445 base:LayerBase;
446 descriptor:StridedSliceDescriptor;
447}
448
449table StridedSliceDescriptor {
450 begin:[int];
451 end:[int];
452 stride:[int];
453 beginMask:int;
454 endMask:int;
455 shrinkAxisMask:int;
456 ellipsisMask:int;
457 newAxisMask:int;
458 dataLayout:DataLayout;
459}
460
Jim Flynne242f2d2019-05-22 14:24:13 +0100461table ConcatLayer {
462 base:LayerBase;
463 descriptor:OriginsDescriptor;
464}
465
Jim Flynnac25a1b2019-02-28 10:40:49 +0000466table MergerLayer {
467 base:LayerBase;
468 descriptor:OriginsDescriptor;
469}
470
471table UintVector {
472 data:[uint];
473}
474
475table OriginsDescriptor {
476 concatAxis:uint;
477 numViews:uint;
478 numDimensions:uint;
479 viewOrigins:[UintVector];
480}
481
Jim Flynn18ce3382019-03-08 11:08:30 +0000482table ViewsDescriptor {
483 origins:OriginsDescriptor;
484 viewSizes:[UintVector];
485}
486
487table SplitterLayer {
488 base:LayerBase;
489 descriptor:ViewsDescriptor;
490}
491
Nattapat Chaimanowong3e14a9d2019-03-18 12:37:06 +0000492table DetectionPostProcessLayer {
493 base:LayerBase;
494 descriptor:DetectionPostProcessDescriptor;
495 anchors:ConstTensor;
496}
497
498table DetectionPostProcessDescriptor {
499 maxDetections:uint;
500 maxClassesPerDetection:uint;
501 detectionsPerClass:uint;
502 nmsScoreThreshold:float;
503 nmsIouThreshold:float;
504 numClasses:uint;
505 useRegularNms:bool;
506 scaleX:float;
507 scaleY:float;
508 scaleW:float;
509 scaleH:float;
510}
511
Jim Flynn11af3752019-03-19 17:22:29 +0000512table LstmInputParams {
513 inputToForgetWeights:ConstTensor;
514 inputToCellWeights:ConstTensor;
515 inputToOutputWeights:ConstTensor;
516 recurrentToForgetWeights:ConstTensor;
517 recurrentToCellWeights:ConstTensor;
518 recurrentToOutputWeights:ConstTensor;
519 forgetGateBias:ConstTensor;
520 cellBias:ConstTensor;
521 outputGateBias:ConstTensor;
522
523 inputToInputWeights:ConstTensor;
524 recurrentToInputWeights:ConstTensor;
525 cellToInputWeights:ConstTensor;
526 inputGateBias:ConstTensor;
527
528 projectionWeights:ConstTensor;
529 projectionBias:ConstTensor;
530
531 cellToForgetWeights:ConstTensor;
532 cellToOutputWeights:ConstTensor;
533}
534
535table LstmDescriptor {
536 activationFunc:uint;
537 clippingThresCell:float;
538 clippingThresProj:float;
539 cifgEnabled:bool = true;
540 peepholeEnabled:bool = false;
541 projectionEnabled:bool = false;
542}
543
544table LstmLayer {
545 base:LayerBase;
546 descriptor:LstmDescriptor;
547 inputParams:LstmInputParams;
548}
549
Nattapat Chaimanowonge4294fd2019-03-28 09:56:53 +0000550table DequantizeLayer {
551 base:LayerBase;
552}
553
Nattapat Chaimanowong1f886302019-04-05 13:37:19 +0100554table MergeLayer {
555 base:LayerBase;
556}
557
Sadik Armaganeff363d2019-04-05 15:25:46 +0100558table SwitchLayer {
559 base:LayerBase;
560}
561
Ellen Norris-Thompson51982472019-06-19 11:46:21 +0100562table PreluLayer {
563 base:LayerBase;
564}
565
Aron Virginas-Tarcb549302019-06-21 13:53:38 +0100566table TransposeConvolution2dLayer {
567 base:LayerBase;
568 descriptor:TransposeConvolution2dDescriptor;
569 weights:ConstTensor;
570 biases:ConstTensor;
571}
572
573table TransposeConvolution2dDescriptor {
574 padLeft:uint;
575 padRight:uint;
576 padTop:uint;
577 padBottom:uint;
578 strideX:uint;
579 strideY:uint;
580 biasEnabled:bool = false;
581 dataLayout:DataLayout = NCHW;
582}
583
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000584union Layer {
Mike Kellyaf484012019-02-20 16:53:11 +0000585 ActivationLayer,
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000586 AdditionLayer,
Nattapat Chaimanowong6b4ed982019-02-26 17:24:13 +0000587 BatchToSpaceNdLayer,
ruoyan018e7fa232019-02-28 15:09:07 +0000588 BatchNormalizationLayer,
Conor Kennedy76277882019-02-26 08:29:54 +0000589 ConstantLayer,
Mike Kellya0766c32019-02-19 17:22:07 +0000590 Convolution2dLayer,
Aron Virginas-Tarc04125f2019-02-19 16:31:08 +0000591 DepthwiseConvolution2dLayer,
Sadik Armagandbb0c0c2019-02-21 09:01:41 +0000592 FullyConnectedLayer,
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000593 InputLayer,
Sadik Armagan5f450272019-02-12 14:31:45 +0000594 MultiplicationLayer,
Aron Virginas-Tarfc413c02019-02-13 15:41:52 +0000595 OutputLayer,
Nattapat Chaimanowong30b00202019-02-20 17:31:34 +0000596 PermuteLayer,
Saoirse Stewart3166c3e2019-02-18 15:24:53 +0000597 Pooling2dLayer,
Saoirse Stewart263829c2019-02-19 15:54:14 +0000598 ReshapeLayer,
Nattapat Chaimanowong45286992019-02-26 15:53:02 +0000599 SoftmaxLayer,
Éanna Ó Catháin58885892019-02-27 16:16:39 +0000600 SpaceToBatchNdLayer,
Aron Virginas-Tar0fe32452019-02-28 13:12:47 +0000601 DivisionLayer,
Nattapat Chaimanowong235cea52019-02-28 16:27:30 +0000602 MinimumLayer,
Aron Virginas-Tar377351e2019-02-27 14:42:31 +0000603 EqualLayer,
Nina Drozd57728782019-02-27 10:53:27 +0000604 MaximumLayer,
Nattapat Chaimanowongebb0f9c2019-03-01 12:14:06 +0000605 NormalizationLayer,
Sadik Armagan8b42a382019-03-01 14:24:49 +0000606 PadLayer,
Finn Williamsdd2ba7e2019-03-01 11:51:52 +0000607 RsqrtLayer,
Conor Kennedy79ffdf52019-03-01 14:24:54 +0000608 FloorLayer,
Nattapat Chaimanowong6522cdc2019-03-01 16:14:13 +0000609 GreaterLayer,
Conor Kennedyda1f9752019-03-01 14:37:12 +0000610 ResizeBilinearLayer,
Nattapat Chaimanowongb3485212019-03-04 12:35:39 +0000611 SubtractionLayer,
Saoirse Stewarta1ed73a2019-03-04 13:40:12 +0000612 StridedSliceLayer,
Sadik Armaganac97c8c2019-03-04 17:44:21 +0000613 GatherLayer,
Jim Flynnac25a1b2019-02-28 10:40:49 +0000614 MeanLayer,
Narumol Prangnawarat495701f2019-03-07 17:31:34 +0000615 MergerLayer,
Jim Flynn18ce3382019-03-08 11:08:30 +0000616 L2NormalizationLayer,
Nattapat Chaimanowong3e14a9d2019-03-18 12:37:06 +0000617 SplitterLayer,
Jim Flynn11af3752019-03-19 17:22:29 +0000618 DetectionPostProcessLayer,
Derek Lamberti87acb272019-03-27 16:51:31 +0000619 LstmLayer,
Nattapat Chaimanowonge4294fd2019-03-28 09:56:53 +0000620 QuantizeLayer,
Nattapat Chaimanowong1f886302019-04-05 13:37:19 +0100621 DequantizeLayer,
Sadik Armaganeff363d2019-04-05 15:25:46 +0100622 MergeLayer,
Jim Flynne242f2d2019-05-22 14:24:13 +0100623 SwitchLayer,
Aron Virginas-Taraa067142019-06-11 16:01:44 +0100624 ConcatLayer,
Ellen Norris-Thompson51982472019-06-19 11:46:21 +0100625 SpaceToDepthLayer,
Aron Virginas-Tarcb549302019-06-21 13:53:38 +0100626 PreluLayer,
627 TransposeConvolution2dLayer
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000628}
629
Saoirse Stewart49dbe0e2019-02-05 17:27:06 +0000630table AnyLayer {
631 layer:Layer;
632}
633
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000634// Root type for serialized data is the graph of the network
635table SerializedGraph {
Saoirse Stewart49dbe0e2019-02-05 17:27:06 +0000636 layers:[AnyLayer];
Mike Kelly8c1701a2019-02-11 17:01:27 +0000637 inputIds:[uint];
638 outputIds:[uint];
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000639}
640
641root_type SerializedGraph;