blob: 794789390af035b56d3750e687a4df8cd551f222 [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,
126 Prelu = 41
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000127}
128
129// Base layer table to be used as part of other layers
130table LayerBase {
131 index:uint;
132 layerName:string;
133 layerType:LayerType;
134 inputSlots:[InputSlot];
135 outputSlots:[OutputSlot];
136}
137
138table BindableLayerBase {
139 base:LayerBase;
140 layerBindingId:int;
141}
142
143// Table for each layer defined below
Mike Kellyaf484012019-02-20 16:53:11 +0000144table ActivationLayer {
145 base:LayerBase;
146 descriptor:ActivationDescriptor;
147}
148
149table ActivationDescriptor {
150 function:ActivationFunction = Sigmoid;
151 a:float;
152 b:float;
153}
154
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000155table AdditionLayer {
156 base:LayerBase;
157}
158
Conor Kennedy76277882019-02-26 08:29:54 +0000159table ConstantLayer {
160 base:LayerBase;
161 input:ConstTensor;
162}
163
Mike Kellya0766c32019-02-19 17:22:07 +0000164table Convolution2dLayer {
165 base:LayerBase;
166 descriptor:Convolution2dDescriptor;
167 weights:ConstTensor;
168 biases:ConstTensor;
169}
170
171table Convolution2dDescriptor {
172 padLeft:uint;
173 padRight:uint;
174 padTop:uint;
175 padBottom:uint;
176 strideX:uint;
177 strideY:uint;
Matthew Benthamacad04e2019-05-13 10:02:45 +0100178 dilationX:uint = 1;
179 dilationY:uint = 1;
Mike Kellya0766c32019-02-19 17:22:07 +0000180 biasEnabled:bool = false;
181 dataLayout:DataLayout = NCHW;
182}
183
Éanna Ó Catháin58885892019-02-27 16:16:39 +0000184table DivisionLayer {
185 base:LayerBase;
186}
187
Nattapat Chaimanowong235cea52019-02-28 16:27:30 +0000188table EqualLayer {
189 base:LayerBase;
190}
191
Finn Williamsdd2ba7e2019-03-01 11:51:52 +0000192table FloorLayer{
193 base:LayerBase;
194}
195
Sadik Armagandbb0c0c2019-02-21 09:01:41 +0000196table FullyConnectedLayer {
197 base:LayerBase;
198 descriptor:FullyConnectedDescriptor;
199 weights:ConstTensor;
200 biases:ConstTensor;
201}
202
203table FullyConnectedDescriptor {
204 biasEnabled:bool = false;
205 transposeWeightsMatrix:bool = false;
206}
207
Saoirse Stewarta1ed73a2019-03-04 13:40:12 +0000208table GatherLayer {
209 base:LayerBase;
210}
211
Conor Kennedy79ffdf52019-03-01 14:24:54 +0000212table GreaterLayer {
213 base:LayerBase;
214}
215
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000216table InputLayer {
217 base:BindableLayerBase;
218}
219
Narumol Prangnawarat495701f2019-03-07 17:31:34 +0000220table L2NormalizationLayer {
221 base:LayerBase;
222 descriptor:L2NormalizationDescriptor;
223}
224
225table L2NormalizationDescriptor {
226 dataLayout:DataLayout = NCHW;
Ferran Balaguer0dcffec2019-06-18 16:25:06 +0100227 eps:float = 1e-12;
Narumol Prangnawarat495701f2019-03-07 17:31:34 +0000228}
229
Aron Virginas-Tar0fe32452019-02-28 13:12:47 +0000230table MinimumLayer {
231 base:LayerBase;
232}
233
Aron Virginas-Tar377351e2019-02-27 14:42:31 +0000234table MaximumLayer {
235 base:LayerBase;
236}
237
Sadik Armagan5f450272019-02-12 14:31:45 +0000238table MultiplicationLayer {
239 base:LayerBase;
240}
241
Saoirse Stewart3166c3e2019-02-18 15:24:53 +0000242table Pooling2dLayer {
243 base:LayerBase;
244 descriptor:Pooling2dDescriptor;
245}
246
247enum PoolingAlgorithm : byte {
248 Max = 0,
249 Average = 1,
250 L2 = 2
251}
252
253enum OutputShapeRounding : byte {
254 Floor = 0,
255 Ceiling = 1
256}
257
258enum PaddingMethod : byte {
259 IgnoreValue = 0,
260 Exclude = 1
261}
262
263table Pooling2dDescriptor {
264 poolType:PoolingAlgorithm;
265 padLeft:uint;
266 padRight:uint;
267 padTop:uint;
268 padBottom:uint;
269 poolWidth:uint;
270 poolHeight:uint;
271 strideX:uint;
272 strideY:uint;
273 outputShapeRounding:OutputShapeRounding;
274 paddingMethod:PaddingMethod;
275 dataLayout:DataLayout;
276}
277
Derek Lamberti87acb272019-03-27 16:51:31 +0000278table QuantizeLayer {
279 base:LayerBase;
280}
281
Aron Virginas-Tarfc413c02019-02-13 15:41:52 +0000282table SoftmaxLayer {
283 base:LayerBase;
284 descriptor:SoftmaxDescriptor;
285}
286
287table SoftmaxDescriptor {
288 beta:float;
289}
290
Aron Virginas-Tarc04125f2019-02-19 16:31:08 +0000291table DepthwiseConvolution2dLayer {
292 base:LayerBase;
293 descriptor:DepthwiseConvolution2dDescriptor;
294 weights:ConstTensor;
295 biases:ConstTensor;
296}
297
298table DepthwiseConvolution2dDescriptor {
299 padLeft:uint;
300 padRight:uint;
301 padTop:uint;
302 padBottom:uint;
303 strideX:uint;
304 strideY:uint;
Matthew Benthamacad04e2019-05-13 10:02:45 +0100305 dilationX:uint = 1;
306 dilationY:uint = 1;
Aron Virginas-Tarc04125f2019-02-19 16:31:08 +0000307 biasEnabled:bool = false;
308 dataLayout:DataLayout = NCHW;
309}
310
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000311table OutputLayer {
312 base:BindableLayerBase;
313}
314
Saoirse Stewart263829c2019-02-19 15:54:14 +0000315table ReshapeLayer {
316 base:LayerBase;
317 descriptor:ReshapeDescriptor;
318}
319
320table ReshapeDescriptor {
321 targetShape:[uint];
322}
323
Nattapat Chaimanowong30b00202019-02-20 17:31:34 +0000324table PermuteLayer {
325 base:LayerBase;
326 descriptor:PermuteDescriptor;
327}
328
329table PermuteDescriptor {
330 dimMappings:[uint];
331}
332
Nattapat Chaimanowong45286992019-02-26 15:53:02 +0000333table SpaceToBatchNdLayer {
334 base:LayerBase;
335 descriptor:SpaceToBatchNdDescriptor;
336}
337
338table SpaceToBatchNdDescriptor {
339 blockShape:[uint];
340 padList:[uint];
341 dataLayout:DataLayout;
342}
343
Aron Virginas-Taraa067142019-06-11 16:01:44 +0100344table SpaceToDepthLayer {
345 base:LayerBase;
346 descriptor:SpaceToDepthDescriptor;
347}
348
349table SpaceToDepthDescriptor {
350 blockSize:uint;
351 dataLayout:DataLayout;
352}
353
Conor Kennedyda1f9752019-03-01 14:37:12 +0000354table SubtractionLayer {
355 base:LayerBase;
356}
357
Nattapat Chaimanowong6b4ed982019-02-26 17:24:13 +0000358table BatchToSpaceNdLayer {
359 base:LayerBase;
360 descriptor:BatchToSpaceNdDescriptor;
361}
362
363table BatchToSpaceNdDescriptor {
364 blockShape:[uint];
365 crops:[uint];
366 dataLayout:DataLayout;
367}
368
Nina Drozd57728782019-02-27 10:53:27 +0000369enum NormalizationAlgorithmChannel : byte {
370 Across = 0,
371 Within = 1
372}
373
374enum NormalizationAlgorithmMethod : byte {
375 LocalBrightness = 0,
376 LocalContrast = 1
377}
378
379table NormalizationLayer {
380 base:LayerBase;
381 descriptor:NormalizationDescriptor;
382}
383
384table NormalizationDescriptor {
385 normChannelType:NormalizationAlgorithmChannel = Across;
386 normMethodType:NormalizationAlgorithmMethod = LocalBrightness;
387 normSize:uint;
388 alpha:float;
389 beta:float;
390 k:float;
391 dataLayout:DataLayout = NCHW;
392}
393
Sadik Armaganac97c8c2019-03-04 17:44:21 +0000394table MeanLayer {
395 base:LayerBase;
396 descriptor:MeanDescriptor;
397}
398
399table MeanDescriptor {
400 axis:[uint];
401 keepDims:bool = false;
402}
403
Nattapat Chaimanowongebb0f9c2019-03-01 12:14:06 +0000404table PadLayer {
405 base:LayerBase;
406 descriptor:PadDescriptor;
407}
408
409table PadDescriptor {
410 padList:[uint];
411}
412
Sadik Armagan8b42a382019-03-01 14:24:49 +0000413table RsqrtLayer {
414 base:LayerBase;
415}
416
ruoyan018e7fa232019-02-28 15:09:07 +0000417table BatchNormalizationLayer {
418 base:LayerBase;
419 descriptor:BatchNormalizationDescriptor;
420 mean:ConstTensor;
421 variance:ConstTensor;
422 beta:ConstTensor;
423 gamma:ConstTensor;
424}
425
426table BatchNormalizationDescriptor {
427 eps:float;
428 dataLayout:DataLayout;
429}
430
Nattapat Chaimanowong6522cdc2019-03-01 16:14:13 +0000431table ResizeBilinearLayer {
432 base:LayerBase;
433 descriptor:ResizeBilinearDescriptor;
434}
435
436table ResizeBilinearDescriptor {
437 targetWidth:uint;
438 targetHeight:uint;
439 dataLayout:DataLayout;
440}
441
Nattapat Chaimanowongb3485212019-03-04 12:35:39 +0000442table StridedSliceLayer {
443 base:LayerBase;
444 descriptor:StridedSliceDescriptor;
445}
446
447table StridedSliceDescriptor {
448 begin:[int];
449 end:[int];
450 stride:[int];
451 beginMask:int;
452 endMask:int;
453 shrinkAxisMask:int;
454 ellipsisMask:int;
455 newAxisMask:int;
456 dataLayout:DataLayout;
457}
458
Jim Flynne242f2d2019-05-22 14:24:13 +0100459table ConcatLayer {
460 base:LayerBase;
461 descriptor:OriginsDescriptor;
462}
463
Jim Flynnac25a1b2019-02-28 10:40:49 +0000464table MergerLayer {
465 base:LayerBase;
466 descriptor:OriginsDescriptor;
467}
468
469table UintVector {
470 data:[uint];
471}
472
473table OriginsDescriptor {
474 concatAxis:uint;
475 numViews:uint;
476 numDimensions:uint;
477 viewOrigins:[UintVector];
478}
479
Jim Flynn18ce3382019-03-08 11:08:30 +0000480table ViewsDescriptor {
481 origins:OriginsDescriptor;
482 viewSizes:[UintVector];
483}
484
485table SplitterLayer {
486 base:LayerBase;
487 descriptor:ViewsDescriptor;
488}
489
Nattapat Chaimanowong3e14a9d2019-03-18 12:37:06 +0000490table DetectionPostProcessLayer {
491 base:LayerBase;
492 descriptor:DetectionPostProcessDescriptor;
493 anchors:ConstTensor;
494}
495
496table DetectionPostProcessDescriptor {
497 maxDetections:uint;
498 maxClassesPerDetection:uint;
499 detectionsPerClass:uint;
500 nmsScoreThreshold:float;
501 nmsIouThreshold:float;
502 numClasses:uint;
503 useRegularNms:bool;
504 scaleX:float;
505 scaleY:float;
506 scaleW:float;
507 scaleH:float;
508}
509
Jim Flynn11af3752019-03-19 17:22:29 +0000510table LstmInputParams {
511 inputToForgetWeights:ConstTensor;
512 inputToCellWeights:ConstTensor;
513 inputToOutputWeights:ConstTensor;
514 recurrentToForgetWeights:ConstTensor;
515 recurrentToCellWeights:ConstTensor;
516 recurrentToOutputWeights:ConstTensor;
517 forgetGateBias:ConstTensor;
518 cellBias:ConstTensor;
519 outputGateBias:ConstTensor;
520
521 inputToInputWeights:ConstTensor;
522 recurrentToInputWeights:ConstTensor;
523 cellToInputWeights:ConstTensor;
524 inputGateBias:ConstTensor;
525
526 projectionWeights:ConstTensor;
527 projectionBias:ConstTensor;
528
529 cellToForgetWeights:ConstTensor;
530 cellToOutputWeights:ConstTensor;
531}
532
533table LstmDescriptor {
534 activationFunc:uint;
535 clippingThresCell:float;
536 clippingThresProj:float;
537 cifgEnabled:bool = true;
538 peepholeEnabled:bool = false;
539 projectionEnabled:bool = false;
540}
541
542table LstmLayer {
543 base:LayerBase;
544 descriptor:LstmDescriptor;
545 inputParams:LstmInputParams;
546}
547
Nattapat Chaimanowonge4294fd2019-03-28 09:56:53 +0000548table DequantizeLayer {
549 base:LayerBase;
550}
551
Nattapat Chaimanowong1f886302019-04-05 13:37:19 +0100552table MergeLayer {
553 base:LayerBase;
554}
555
Sadik Armaganeff363d2019-04-05 15:25:46 +0100556table SwitchLayer {
557 base:LayerBase;
558}
559
Ellen Norris-Thompson51982472019-06-19 11:46:21 +0100560table PreluLayer {
561 base:LayerBase;
562}
563
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000564union Layer {
Mike Kellyaf484012019-02-20 16:53:11 +0000565 ActivationLayer,
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000566 AdditionLayer,
Nattapat Chaimanowong6b4ed982019-02-26 17:24:13 +0000567 BatchToSpaceNdLayer,
ruoyan018e7fa232019-02-28 15:09:07 +0000568 BatchNormalizationLayer,
Conor Kennedy76277882019-02-26 08:29:54 +0000569 ConstantLayer,
Mike Kellya0766c32019-02-19 17:22:07 +0000570 Convolution2dLayer,
Aron Virginas-Tarc04125f2019-02-19 16:31:08 +0000571 DepthwiseConvolution2dLayer,
Sadik Armagandbb0c0c2019-02-21 09:01:41 +0000572 FullyConnectedLayer,
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000573 InputLayer,
Sadik Armagan5f450272019-02-12 14:31:45 +0000574 MultiplicationLayer,
Aron Virginas-Tarfc413c02019-02-13 15:41:52 +0000575 OutputLayer,
Nattapat Chaimanowong30b00202019-02-20 17:31:34 +0000576 PermuteLayer,
Saoirse Stewart3166c3e2019-02-18 15:24:53 +0000577 Pooling2dLayer,
Saoirse Stewart263829c2019-02-19 15:54:14 +0000578 ReshapeLayer,
Nattapat Chaimanowong45286992019-02-26 15:53:02 +0000579 SoftmaxLayer,
Éanna Ó Catháin58885892019-02-27 16:16:39 +0000580 SpaceToBatchNdLayer,
Aron Virginas-Tar0fe32452019-02-28 13:12:47 +0000581 DivisionLayer,
Nattapat Chaimanowong235cea52019-02-28 16:27:30 +0000582 MinimumLayer,
Aron Virginas-Tar377351e2019-02-27 14:42:31 +0000583 EqualLayer,
Nina Drozd57728782019-02-27 10:53:27 +0000584 MaximumLayer,
Nattapat Chaimanowongebb0f9c2019-03-01 12:14:06 +0000585 NormalizationLayer,
Sadik Armagan8b42a382019-03-01 14:24:49 +0000586 PadLayer,
Finn Williamsdd2ba7e2019-03-01 11:51:52 +0000587 RsqrtLayer,
Conor Kennedy79ffdf52019-03-01 14:24:54 +0000588 FloorLayer,
Nattapat Chaimanowong6522cdc2019-03-01 16:14:13 +0000589 GreaterLayer,
Conor Kennedyda1f9752019-03-01 14:37:12 +0000590 ResizeBilinearLayer,
Nattapat Chaimanowongb3485212019-03-04 12:35:39 +0000591 SubtractionLayer,
Saoirse Stewarta1ed73a2019-03-04 13:40:12 +0000592 StridedSliceLayer,
Sadik Armaganac97c8c2019-03-04 17:44:21 +0000593 GatherLayer,
Jim Flynnac25a1b2019-02-28 10:40:49 +0000594 MeanLayer,
Narumol Prangnawarat495701f2019-03-07 17:31:34 +0000595 MergerLayer,
Jim Flynn18ce3382019-03-08 11:08:30 +0000596 L2NormalizationLayer,
Nattapat Chaimanowong3e14a9d2019-03-18 12:37:06 +0000597 SplitterLayer,
Jim Flynn11af3752019-03-19 17:22:29 +0000598 DetectionPostProcessLayer,
Derek Lamberti87acb272019-03-27 16:51:31 +0000599 LstmLayer,
Nattapat Chaimanowonge4294fd2019-03-28 09:56:53 +0000600 QuantizeLayer,
Nattapat Chaimanowong1f886302019-04-05 13:37:19 +0100601 DequantizeLayer,
Sadik Armaganeff363d2019-04-05 15:25:46 +0100602 MergeLayer,
Jim Flynne242f2d2019-05-22 14:24:13 +0100603 SwitchLayer,
Aron Virginas-Taraa067142019-06-11 16:01:44 +0100604 ConcatLayer,
Ellen Norris-Thompson51982472019-06-19 11:46:21 +0100605 SpaceToDepthLayer,
606 PreluLayer
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000607}
608
Saoirse Stewart49dbe0e2019-02-05 17:27:06 +0000609table AnyLayer {
610 layer:Layer;
611}
612
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000613// Root type for serialized data is the graph of the network
614table SerializedGraph {
Saoirse Stewart49dbe0e2019-02-05 17:27:06 +0000615 layers:[AnyLayer];
Mike Kelly8c1701a2019-02-11 17:01:27 +0000616 inputIds:[uint];
617 outputIds:[uint];
Nattapat Chaimanowong969eea32019-01-30 13:33:11 +0000618}
619
620root_type SerializedGraph;