Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
Derek Lamberti | 0028d1b | 2019-02-20 13:57:42 +0000 | [diff] [blame] | 6 | namespace armnnSerializer; |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 7 | |
| 8 | file_identifier "ARMN"; |
| 9 | |
| 10 | file_extension "armnn"; |
| 11 | |
Mike Kelly | af48401 | 2019-02-20 16:53:11 +0000 | [diff] [blame] | 12 | enum 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 Prangnawarat | 0cfcf23 | 2019-09-09 17:16:24 +0100 | [diff] [blame] | 25 | enum ArgMinMaxFunction : byte { |
| 26 | Min = 0, |
| 27 | Max = 1 |
| 28 | } |
| 29 | |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 30 | enum DataType : byte { |
| 31 | Float16 = 0, |
| 32 | Float32 = 1, |
| 33 | QuantisedAsymm8 = 2, |
| 34 | Signed32 = 3, |
Nattapat Chaimanowong | cd5ac23 | 2019-03-19 12:26:36 +0000 | [diff] [blame] | 35 | Boolean = 4, |
| 36 | QuantisedSymm16 = 5 |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 37 | } |
| 38 | |
Saoirse Stewart | 3166c3e | 2019-02-18 15:24:53 +0000 | [diff] [blame] | 39 | enum DataLayout : byte { |
| 40 | NHWC = 0, |
| 41 | NCHW = 1 |
| 42 | } |
| 43 | |
FinnWilliamsArm | 6fb339a | 2019-06-28 15:07:10 +0100 | [diff] [blame] | 44 | enum ResizeMethod: byte { |
| 45 | NearestNeighbor = 0, |
| 46 | Bilinear = 1, |
| 47 | } |
| 48 | |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 49 | table TensorInfo { |
| 50 | dimensions:[uint]; |
| 51 | dataType:DataType; |
| 52 | quantizationScale:float = 1.0; |
| 53 | quantizationOffset:int = 0; |
| 54 | } |
| 55 | |
| 56 | struct Connection { |
| 57 | sourceLayerIndex:uint; |
| 58 | outputSlotIndex:uint; |
| 59 | } |
| 60 | |
| 61 | table ByteData { |
| 62 | data:[byte]; |
| 63 | } |
| 64 | |
| 65 | table ShortData { |
| 66 | data:[short]; |
| 67 | } |
| 68 | |
| 69 | table IntData { |
| 70 | data:[int]; |
| 71 | } |
| 72 | |
| 73 | table LongData { |
| 74 | data:[long]; |
| 75 | } |
| 76 | |
| 77 | union ConstTensorData { ByteData, ShortData, IntData, LongData } |
| 78 | |
| 79 | table ConstTensor { |
| 80 | info:TensorInfo; |
| 81 | data:ConstTensorData; |
| 82 | } |
| 83 | |
| 84 | table InputSlot { |
| 85 | index:uint; |
| 86 | connection:Connection; |
| 87 | } |
| 88 | |
| 89 | table OutputSlot { |
| 90 | index:uint; |
| 91 | tensorInfo:TensorInfo; |
| 92 | } |
| 93 | |
| 94 | enum LayerType : uint { |
| 95 | Addition = 0, |
| 96 | Input = 1, |
Sadik Armagan | 5f45027 | 2019-02-12 14:31:45 +0000 | [diff] [blame] | 97 | Multiplication = 2, |
Aron Virginas-Tar | fc413c0 | 2019-02-13 15:41:52 +0000 | [diff] [blame] | 98 | Output = 3, |
Saoirse Stewart | 3166c3e | 2019-02-18 15:24:53 +0000 | [diff] [blame] | 99 | Pooling2d = 4, |
Saoirse Stewart | 263829c | 2019-02-19 15:54:14 +0000 | [diff] [blame] | 100 | Reshape = 5, |
Mike Kelly | a0766c3 | 2019-02-19 17:22:07 +0000 | [diff] [blame] | 101 | Softmax = 6, |
Aron Virginas-Tar | c04125f | 2019-02-19 16:31:08 +0000 | [diff] [blame] | 102 | Convolution2d = 7, |
Mike Kelly | af48401 | 2019-02-20 16:53:11 +0000 | [diff] [blame] | 103 | DepthwiseConvolution2d = 8, |
Nattapat Chaimanowong | 30b0020 | 2019-02-20 17:31:34 +0000 | [diff] [blame] | 104 | Activation = 9, |
Sadik Armagan | dbb0c0c | 2019-02-21 09:01:41 +0000 | [diff] [blame] | 105 | Permute = 10, |
Conor Kennedy | 7627788 | 2019-02-26 08:29:54 +0000 | [diff] [blame] | 106 | FullyConnected = 11, |
Nattapat Chaimanowong | 4528699 | 2019-02-26 15:53:02 +0000 | [diff] [blame] | 107 | Constant = 12, |
Nattapat Chaimanowong | 6b4ed98 | 2019-02-26 17:24:13 +0000 | [diff] [blame] | 108 | SpaceToBatchNd = 13, |
Éanna Ó Catháin | 5888589 | 2019-02-27 16:16:39 +0000 | [diff] [blame] | 109 | BatchToSpaceNd = 14, |
Aron Virginas-Tar | 0fe3245 | 2019-02-28 13:12:47 +0000 | [diff] [blame] | 110 | Division = 15, |
Nattapat Chaimanowong | 235cea5 | 2019-02-28 16:27:30 +0000 | [diff] [blame] | 111 | Minimum = 16, |
Aron Virginas-Tar | 377351e | 2019-02-27 14:42:31 +0000 | [diff] [blame] | 112 | Equal = 17, |
Nina Drozd | 5772878 | 2019-02-27 10:53:27 +0000 | [diff] [blame] | 113 | Maximum = 18, |
Nattapat Chaimanowong | ebb0f9c | 2019-03-01 12:14:06 +0000 | [diff] [blame] | 114 | Normalization = 19, |
Sadik Armagan | 8b42a38 | 2019-03-01 14:24:49 +0000 | [diff] [blame] | 115 | Pad = 20, |
Finn Williams | dd2ba7e | 2019-03-01 11:51:52 +0000 | [diff] [blame] | 116 | Rsqrt = 21, |
ruoyan01 | 8e7fa23 | 2019-02-28 15:09:07 +0000 | [diff] [blame] | 117 | Floor = 22, |
Conor Kennedy | 79ffdf5 | 2019-03-01 14:24:54 +0000 | [diff] [blame] | 118 | BatchNormalization = 23, |
Nattapat Chaimanowong | 6522cdc | 2019-03-01 16:14:13 +0000 | [diff] [blame] | 119 | Greater = 24, |
Conor Kennedy | da1f975 | 2019-03-01 14:37:12 +0000 | [diff] [blame] | 120 | ResizeBilinear = 25, |
Nattapat Chaimanowong | b348521 | 2019-03-04 12:35:39 +0000 | [diff] [blame] | 121 | Subtraction = 26, |
Saoirse Stewart | a1ed73a | 2019-03-04 13:40:12 +0000 | [diff] [blame] | 122 | StridedSlice = 27, |
Sadik Armagan | ac97c8c | 2019-03-04 17:44:21 +0000 | [diff] [blame] | 123 | Gather = 28, |
Jim Flynn | ac25a1b | 2019-02-28 10:40:49 +0000 | [diff] [blame] | 124 | Mean = 29, |
Narumol Prangnawarat | 495701f | 2019-03-07 17:31:34 +0000 | [diff] [blame] | 125 | Merger = 30, |
Jim Flynn | 18ce338 | 2019-03-08 11:08:30 +0000 | [diff] [blame] | 126 | L2Normalization = 31, |
Nattapat Chaimanowong | 3e14a9d | 2019-03-18 12:37:06 +0000 | [diff] [blame] | 127 | Splitter = 32, |
Jim Flynn | 11af375 | 2019-03-19 17:22:29 +0000 | [diff] [blame] | 128 | DetectionPostProcess = 33, |
Derek Lamberti | 87acb27 | 2019-03-27 16:51:31 +0000 | [diff] [blame] | 129 | Lstm = 34, |
Nattapat Chaimanowong | e4294fd | 2019-03-28 09:56:53 +0000 | [diff] [blame] | 130 | Quantize = 35, |
Nattapat Chaimanowong | 1f88630 | 2019-04-05 13:37:19 +0100 | [diff] [blame] | 131 | Dequantize = 36, |
Sadik Armagan | eff363d | 2019-04-05 15:25:46 +0100 | [diff] [blame] | 132 | Merge = 37, |
Jim Flynn | e242f2d | 2019-05-22 14:24:13 +0100 | [diff] [blame] | 133 | Switch = 38, |
Aron Virginas-Tar | aa06714 | 2019-06-11 16:01:44 +0100 | [diff] [blame] | 134 | Concat = 39, |
Ellen Norris-Thompson | 5198247 | 2019-06-19 11:46:21 +0100 | [diff] [blame] | 135 | SpaceToDepth = 40, |
Aron Virginas-Tar | cb54930 | 2019-06-21 13:53:38 +0100 | [diff] [blame] | 136 | Prelu = 41, |
FinnWilliamsArm | 6fb339a | 2019-06-28 15:07:10 +0100 | [diff] [blame] | 137 | TransposeConvolution2d = 42, |
Matthew Jackson | b5433ee | 2019-07-11 15:54:20 +0100 | [diff] [blame] | 138 | Resize = 43, |
Jan Eilers | 5b01a89 | 2019-07-23 09:47:43 +0100 | [diff] [blame] | 139 | Stack = 44, |
FinnWilliamsArm | 4ffcc8f | 2019-09-05 14:34:20 +0100 | [diff] [blame] | 140 | QuantizedLstm = 45, |
Narumol Prangnawarat | 0cfcf23 | 2019-09-09 17:16:24 +0100 | [diff] [blame] | 141 | Abs = 46, |
Aron Virginas-Tar | 2fda80b | 2019-09-18 13:36:52 +0100 | [diff] [blame] | 142 | ArgMinMax = 47, |
Aron Virginas-Tar | da9d2d3 | 2019-09-20 10:42:02 +0100 | [diff] [blame] | 143 | Slice = 48, |
Aron Virginas-Tar | 781ced9 | 2019-10-03 11:15:39 +0100 | [diff] [blame] | 144 | DepthToSpace = 49, |
Sadik Armagan | 2625785 | 2019-10-14 13:00:47 +0100 | [diff] [blame] | 145 | InstanceNormalization = 50, |
Aron Virginas-Tar | e80ebd1 | 2019-10-17 16:11:54 +0100 | [diff] [blame] | 146 | LogSoftmax = 51, |
Aron Virginas-Tar | 85121a2 | 2019-10-23 10:41:35 +0100 | [diff] [blame^] | 147 | Comparison = 52, |
| 148 | StandIn = 53 |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 149 | } |
| 150 | |
| 151 | // Base layer table to be used as part of other layers |
| 152 | table LayerBase { |
| 153 | index:uint; |
| 154 | layerName:string; |
| 155 | layerType:LayerType; |
| 156 | inputSlots:[InputSlot]; |
| 157 | outputSlots:[OutputSlot]; |
| 158 | } |
| 159 | |
| 160 | table BindableLayerBase { |
| 161 | base:LayerBase; |
| 162 | layerBindingId:int; |
| 163 | } |
| 164 | |
| 165 | // Table for each layer defined below |
FinnWilliamsArm | 4ffcc8f | 2019-09-05 14:34:20 +0100 | [diff] [blame] | 166 | |
| 167 | table AbsLayer { |
| 168 | base:LayerBase; |
| 169 | } |
| 170 | |
Mike Kelly | af48401 | 2019-02-20 16:53:11 +0000 | [diff] [blame] | 171 | table ActivationLayer { |
| 172 | base:LayerBase; |
| 173 | descriptor:ActivationDescriptor; |
| 174 | } |
| 175 | |
| 176 | table ActivationDescriptor { |
Tee Jung | 86bc3d8 | 2019-10-01 11:25:56 +0900 | [diff] [blame] | 177 | activationFunction:ActivationFunction = Sigmoid; |
Mike Kelly | af48401 | 2019-02-20 16:53:11 +0000 | [diff] [blame] | 178 | a:float; |
| 179 | b:float; |
| 180 | } |
| 181 | |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 182 | table AdditionLayer { |
| 183 | base:LayerBase; |
| 184 | } |
| 185 | |
Narumol Prangnawarat | 0cfcf23 | 2019-09-09 17:16:24 +0100 | [diff] [blame] | 186 | table ArgMinMaxLayer { |
| 187 | base:LayerBase; |
| 188 | descriptor:ArgMinMaxDescriptor; |
| 189 | } |
| 190 | |
| 191 | table ArgMinMaxDescriptor{ |
Tee Jung | 86bc3d8 | 2019-10-01 11:25:56 +0900 | [diff] [blame] | 192 | argMinMaxFunction:ArgMinMaxFunction; |
Narumol Prangnawarat | 0cfcf23 | 2019-09-09 17:16:24 +0100 | [diff] [blame] | 193 | axis:int; |
| 194 | } |
| 195 | |
Aron Virginas-Tar | e80ebd1 | 2019-10-17 16:11:54 +0100 | [diff] [blame] | 196 | enum ComparisonOperation : byte { |
| 197 | Equal = 0, |
| 198 | Greater = 1, |
| 199 | GreaterOrEqual = 2, |
| 200 | Less = 3, |
| 201 | LessOrEqual = 4, |
| 202 | NotEqual = 5 |
| 203 | } |
| 204 | |
| 205 | table ComparisonDescriptor { |
| 206 | operation:ComparisonOperation; |
| 207 | } |
| 208 | |
| 209 | table ComparisonLayer { |
| 210 | base:LayerBase; |
| 211 | descriptor:ComparisonDescriptor; |
| 212 | } |
| 213 | |
Conor Kennedy | 7627788 | 2019-02-26 08:29:54 +0000 | [diff] [blame] | 214 | table ConstantLayer { |
| 215 | base:LayerBase; |
| 216 | input:ConstTensor; |
| 217 | } |
| 218 | |
Mike Kelly | a0766c3 | 2019-02-19 17:22:07 +0000 | [diff] [blame] | 219 | table Convolution2dLayer { |
| 220 | base:LayerBase; |
| 221 | descriptor:Convolution2dDescriptor; |
| 222 | weights:ConstTensor; |
| 223 | biases:ConstTensor; |
| 224 | } |
| 225 | |
| 226 | table Convolution2dDescriptor { |
| 227 | padLeft:uint; |
| 228 | padRight:uint; |
| 229 | padTop:uint; |
| 230 | padBottom:uint; |
| 231 | strideX:uint; |
| 232 | strideY:uint; |
Matthew Bentham | acad04e | 2019-05-13 10:02:45 +0100 | [diff] [blame] | 233 | dilationX:uint = 1; |
| 234 | dilationY:uint = 1; |
Mike Kelly | a0766c3 | 2019-02-19 17:22:07 +0000 | [diff] [blame] | 235 | biasEnabled:bool = false; |
| 236 | dataLayout:DataLayout = NCHW; |
| 237 | } |
| 238 | |
Aron Virginas-Tar | da9d2d3 | 2019-09-20 10:42:02 +0100 | [diff] [blame] | 239 | table DepthToSpaceLayer { |
| 240 | base:LayerBase; |
| 241 | descriptor:DepthToSpaceDescriptor; |
| 242 | } |
| 243 | |
| 244 | table DepthToSpaceDescriptor { |
| 245 | blockSize:uint; |
| 246 | dataLayout:DataLayout; |
| 247 | } |
| 248 | |
Éanna Ó Catháin | 5888589 | 2019-02-27 16:16:39 +0000 | [diff] [blame] | 249 | table DivisionLayer { |
| 250 | base:LayerBase; |
| 251 | } |
| 252 | |
Aron Virginas-Tar | e80ebd1 | 2019-10-17 16:11:54 +0100 | [diff] [blame] | 253 | /// @deprecated Use ComparisonLayer instead |
Nattapat Chaimanowong | 235cea5 | 2019-02-28 16:27:30 +0000 | [diff] [blame] | 254 | table EqualLayer { |
| 255 | base:LayerBase; |
| 256 | } |
| 257 | |
Finn Williams | dd2ba7e | 2019-03-01 11:51:52 +0000 | [diff] [blame] | 258 | table FloorLayer{ |
| 259 | base:LayerBase; |
| 260 | } |
| 261 | |
Sadik Armagan | dbb0c0c | 2019-02-21 09:01:41 +0000 | [diff] [blame] | 262 | table FullyConnectedLayer { |
| 263 | base:LayerBase; |
| 264 | descriptor:FullyConnectedDescriptor; |
| 265 | weights:ConstTensor; |
| 266 | biases:ConstTensor; |
| 267 | } |
| 268 | |
| 269 | table FullyConnectedDescriptor { |
| 270 | biasEnabled:bool = false; |
| 271 | transposeWeightsMatrix:bool = false; |
| 272 | } |
| 273 | |
Saoirse Stewart | a1ed73a | 2019-03-04 13:40:12 +0000 | [diff] [blame] | 274 | table GatherLayer { |
| 275 | base:LayerBase; |
| 276 | } |
| 277 | |
Aron Virginas-Tar | e80ebd1 | 2019-10-17 16:11:54 +0100 | [diff] [blame] | 278 | /// @deprecated Use ComparisonLayer instead |
Conor Kennedy | 79ffdf5 | 2019-03-01 14:24:54 +0000 | [diff] [blame] | 279 | table GreaterLayer { |
| 280 | base:LayerBase; |
| 281 | } |
| 282 | |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 283 | table InputLayer { |
| 284 | base:BindableLayerBase; |
| 285 | } |
| 286 | |
Aron Virginas-Tar | 781ced9 | 2019-10-03 11:15:39 +0100 | [diff] [blame] | 287 | table InstanceNormalizationLayer { |
| 288 | base:LayerBase; |
| 289 | descriptor:InstanceNormalizationDescriptor; |
| 290 | } |
| 291 | |
| 292 | table InstanceNormalizationDescriptor { |
| 293 | gamma:float; |
| 294 | beta:float; |
| 295 | eps:float; |
| 296 | dataLayout:DataLayout; |
| 297 | } |
| 298 | |
Sadik Armagan | 2625785 | 2019-10-14 13:00:47 +0100 | [diff] [blame] | 299 | table LogSoftmaxLayer { |
| 300 | base:LayerBase; |
| 301 | descriptor:LogSoftmaxDescriptor; |
| 302 | } |
| 303 | |
| 304 | table LogSoftmaxDescriptor { |
| 305 | beta:float = 1; |
| 306 | axis:int = -1; |
| 307 | } |
| 308 | |
Narumol Prangnawarat | 495701f | 2019-03-07 17:31:34 +0000 | [diff] [blame] | 309 | table L2NormalizationLayer { |
| 310 | base:LayerBase; |
| 311 | descriptor:L2NormalizationDescriptor; |
| 312 | } |
| 313 | |
| 314 | table L2NormalizationDescriptor { |
| 315 | dataLayout:DataLayout = NCHW; |
Ferran Balaguer | 0dcffec | 2019-06-18 16:25:06 +0100 | [diff] [blame] | 316 | eps:float = 1e-12; |
Narumol Prangnawarat | 495701f | 2019-03-07 17:31:34 +0000 | [diff] [blame] | 317 | } |
| 318 | |
Aron Virginas-Tar | 0fe3245 | 2019-02-28 13:12:47 +0000 | [diff] [blame] | 319 | table MinimumLayer { |
| 320 | base:LayerBase; |
| 321 | } |
| 322 | |
Aron Virginas-Tar | 377351e | 2019-02-27 14:42:31 +0000 | [diff] [blame] | 323 | table MaximumLayer { |
| 324 | base:LayerBase; |
| 325 | } |
| 326 | |
Sadik Armagan | 5f45027 | 2019-02-12 14:31:45 +0000 | [diff] [blame] | 327 | table MultiplicationLayer { |
| 328 | base:LayerBase; |
| 329 | } |
| 330 | |
Saoirse Stewart | 3166c3e | 2019-02-18 15:24:53 +0000 | [diff] [blame] | 331 | table Pooling2dLayer { |
| 332 | base:LayerBase; |
| 333 | descriptor:Pooling2dDescriptor; |
| 334 | } |
| 335 | |
| 336 | enum PoolingAlgorithm : byte { |
| 337 | Max = 0, |
| 338 | Average = 1, |
| 339 | L2 = 2 |
| 340 | } |
| 341 | |
| 342 | enum OutputShapeRounding : byte { |
| 343 | Floor = 0, |
| 344 | Ceiling = 1 |
| 345 | } |
| 346 | |
| 347 | enum PaddingMethod : byte { |
| 348 | IgnoreValue = 0, |
| 349 | Exclude = 1 |
| 350 | } |
| 351 | |
| 352 | table Pooling2dDescriptor { |
| 353 | poolType:PoolingAlgorithm; |
| 354 | padLeft:uint; |
| 355 | padRight:uint; |
| 356 | padTop:uint; |
| 357 | padBottom:uint; |
| 358 | poolWidth:uint; |
| 359 | poolHeight:uint; |
| 360 | strideX:uint; |
| 361 | strideY:uint; |
| 362 | outputShapeRounding:OutputShapeRounding; |
| 363 | paddingMethod:PaddingMethod; |
| 364 | dataLayout:DataLayout; |
| 365 | } |
| 366 | |
Derek Lamberti | 87acb27 | 2019-03-27 16:51:31 +0000 | [diff] [blame] | 367 | table QuantizeLayer { |
| 368 | base:LayerBase; |
| 369 | } |
| 370 | |
Aron Virginas-Tar | fc413c0 | 2019-02-13 15:41:52 +0000 | [diff] [blame] | 371 | table SoftmaxLayer { |
| 372 | base:LayerBase; |
| 373 | descriptor:SoftmaxDescriptor; |
| 374 | } |
| 375 | |
| 376 | table SoftmaxDescriptor { |
| 377 | beta:float; |
| 378 | } |
| 379 | |
Aron Virginas-Tar | c04125f | 2019-02-19 16:31:08 +0000 | [diff] [blame] | 380 | table DepthwiseConvolution2dLayer { |
| 381 | base:LayerBase; |
| 382 | descriptor:DepthwiseConvolution2dDescriptor; |
| 383 | weights:ConstTensor; |
| 384 | biases:ConstTensor; |
| 385 | } |
| 386 | |
| 387 | table DepthwiseConvolution2dDescriptor { |
| 388 | padLeft:uint; |
| 389 | padRight:uint; |
| 390 | padTop:uint; |
| 391 | padBottom:uint; |
| 392 | strideX:uint; |
| 393 | strideY:uint; |
Matthew Bentham | acad04e | 2019-05-13 10:02:45 +0100 | [diff] [blame] | 394 | dilationX:uint = 1; |
| 395 | dilationY:uint = 1; |
Aron Virginas-Tar | c04125f | 2019-02-19 16:31:08 +0000 | [diff] [blame] | 396 | biasEnabled:bool = false; |
| 397 | dataLayout:DataLayout = NCHW; |
| 398 | } |
| 399 | |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 400 | table OutputLayer { |
| 401 | base:BindableLayerBase; |
| 402 | } |
| 403 | |
Saoirse Stewart | 263829c | 2019-02-19 15:54:14 +0000 | [diff] [blame] | 404 | table ReshapeLayer { |
| 405 | base:LayerBase; |
| 406 | descriptor:ReshapeDescriptor; |
| 407 | } |
| 408 | |
| 409 | table ReshapeDescriptor { |
| 410 | targetShape:[uint]; |
| 411 | } |
| 412 | |
Nattapat Chaimanowong | 30b0020 | 2019-02-20 17:31:34 +0000 | [diff] [blame] | 413 | table PermuteLayer { |
| 414 | base:LayerBase; |
| 415 | descriptor:PermuteDescriptor; |
| 416 | } |
| 417 | |
| 418 | table PermuteDescriptor { |
| 419 | dimMappings:[uint]; |
| 420 | } |
| 421 | |
Nattapat Chaimanowong | 4528699 | 2019-02-26 15:53:02 +0000 | [diff] [blame] | 422 | table SpaceToBatchNdLayer { |
| 423 | base:LayerBase; |
| 424 | descriptor:SpaceToBatchNdDescriptor; |
| 425 | } |
| 426 | |
| 427 | table SpaceToBatchNdDescriptor { |
| 428 | blockShape:[uint]; |
| 429 | padList:[uint]; |
| 430 | dataLayout:DataLayout; |
| 431 | } |
| 432 | |
Aron Virginas-Tar | aa06714 | 2019-06-11 16:01:44 +0100 | [diff] [blame] | 433 | table SpaceToDepthLayer { |
| 434 | base:LayerBase; |
| 435 | descriptor:SpaceToDepthDescriptor; |
| 436 | } |
| 437 | |
| 438 | table SpaceToDepthDescriptor { |
| 439 | blockSize:uint; |
| 440 | dataLayout:DataLayout; |
| 441 | } |
| 442 | |
Conor Kennedy | da1f975 | 2019-03-01 14:37:12 +0000 | [diff] [blame] | 443 | table SubtractionLayer { |
| 444 | base:LayerBase; |
| 445 | } |
| 446 | |
Nattapat Chaimanowong | 6b4ed98 | 2019-02-26 17:24:13 +0000 | [diff] [blame] | 447 | table BatchToSpaceNdLayer { |
| 448 | base:LayerBase; |
| 449 | descriptor:BatchToSpaceNdDescriptor; |
| 450 | } |
| 451 | |
| 452 | table BatchToSpaceNdDescriptor { |
| 453 | blockShape:[uint]; |
| 454 | crops:[uint]; |
| 455 | dataLayout:DataLayout; |
| 456 | } |
| 457 | |
Nina Drozd | 5772878 | 2019-02-27 10:53:27 +0000 | [diff] [blame] | 458 | enum NormalizationAlgorithmChannel : byte { |
| 459 | Across = 0, |
| 460 | Within = 1 |
| 461 | } |
| 462 | |
| 463 | enum NormalizationAlgorithmMethod : byte { |
| 464 | LocalBrightness = 0, |
| 465 | LocalContrast = 1 |
| 466 | } |
| 467 | |
| 468 | table NormalizationLayer { |
| 469 | base:LayerBase; |
| 470 | descriptor:NormalizationDescriptor; |
| 471 | } |
| 472 | |
| 473 | table NormalizationDescriptor { |
| 474 | normChannelType:NormalizationAlgorithmChannel = Across; |
| 475 | normMethodType:NormalizationAlgorithmMethod = LocalBrightness; |
| 476 | normSize:uint; |
| 477 | alpha:float; |
| 478 | beta:float; |
| 479 | k:float; |
| 480 | dataLayout:DataLayout = NCHW; |
| 481 | } |
| 482 | |
Sadik Armagan | ac97c8c | 2019-03-04 17:44:21 +0000 | [diff] [blame] | 483 | table MeanLayer { |
| 484 | base:LayerBase; |
| 485 | descriptor:MeanDescriptor; |
| 486 | } |
| 487 | |
| 488 | table MeanDescriptor { |
| 489 | axis:[uint]; |
| 490 | keepDims:bool = false; |
| 491 | } |
| 492 | |
Nattapat Chaimanowong | ebb0f9c | 2019-03-01 12:14:06 +0000 | [diff] [blame] | 493 | table PadLayer { |
| 494 | base:LayerBase; |
| 495 | descriptor:PadDescriptor; |
| 496 | } |
| 497 | |
| 498 | table PadDescriptor { |
| 499 | padList:[uint]; |
David Monahan | 3475781 | 2019-06-19 11:47:21 +0100 | [diff] [blame] | 500 | padValue:float = 0; |
Nattapat Chaimanowong | ebb0f9c | 2019-03-01 12:14:06 +0000 | [diff] [blame] | 501 | } |
| 502 | |
Sadik Armagan | 8b42a38 | 2019-03-01 14:24:49 +0000 | [diff] [blame] | 503 | table RsqrtLayer { |
| 504 | base:LayerBase; |
| 505 | } |
| 506 | |
ruoyan01 | 8e7fa23 | 2019-02-28 15:09:07 +0000 | [diff] [blame] | 507 | table BatchNormalizationLayer { |
| 508 | base:LayerBase; |
| 509 | descriptor:BatchNormalizationDescriptor; |
| 510 | mean:ConstTensor; |
| 511 | variance:ConstTensor; |
| 512 | beta:ConstTensor; |
| 513 | gamma:ConstTensor; |
| 514 | } |
| 515 | |
| 516 | table BatchNormalizationDescriptor { |
| 517 | eps:float; |
| 518 | dataLayout:DataLayout; |
| 519 | } |
| 520 | |
Aron Virginas-Tar | e80ebd1 | 2019-10-17 16:11:54 +0100 | [diff] [blame] | 521 | /// @deprecated Use ResizeLayer instead |
Nattapat Chaimanowong | 6522cdc | 2019-03-01 16:14:13 +0000 | [diff] [blame] | 522 | table ResizeBilinearLayer { |
| 523 | base:LayerBase; |
| 524 | descriptor:ResizeBilinearDescriptor; |
| 525 | } |
| 526 | |
| 527 | table ResizeBilinearDescriptor { |
| 528 | targetWidth:uint; |
| 529 | targetHeight:uint; |
| 530 | dataLayout:DataLayout; |
| 531 | } |
| 532 | |
Aron Virginas-Tar | 2fda80b | 2019-09-18 13:36:52 +0100 | [diff] [blame] | 533 | table SliceLayer { |
| 534 | base:LayerBase; |
| 535 | descriptor:SliceDescriptor; |
| 536 | } |
| 537 | |
| 538 | table SliceDescriptor { |
| 539 | begin:[uint]; |
| 540 | size:[uint]; |
| 541 | } |
| 542 | |
Nattapat Chaimanowong | b348521 | 2019-03-04 12:35:39 +0000 | [diff] [blame] | 543 | table StridedSliceLayer { |
| 544 | base:LayerBase; |
| 545 | descriptor:StridedSliceDescriptor; |
| 546 | } |
| 547 | |
| 548 | table StridedSliceDescriptor { |
| 549 | begin:[int]; |
| 550 | end:[int]; |
| 551 | stride:[int]; |
| 552 | beginMask:int; |
| 553 | endMask:int; |
| 554 | shrinkAxisMask:int; |
| 555 | ellipsisMask:int; |
| 556 | newAxisMask:int; |
| 557 | dataLayout:DataLayout; |
| 558 | } |
| 559 | |
Jim Flynn | e242f2d | 2019-05-22 14:24:13 +0100 | [diff] [blame] | 560 | table ConcatLayer { |
| 561 | base:LayerBase; |
| 562 | descriptor:OriginsDescriptor; |
| 563 | } |
| 564 | |
Aron Virginas-Tar | e80ebd1 | 2019-10-17 16:11:54 +0100 | [diff] [blame] | 565 | /// @deprecated Use ConcatLayer instead |
Jim Flynn | ac25a1b | 2019-02-28 10:40:49 +0000 | [diff] [blame] | 566 | table MergerLayer { |
| 567 | base:LayerBase; |
| 568 | descriptor:OriginsDescriptor; |
| 569 | } |
| 570 | |
| 571 | table UintVector { |
| 572 | data:[uint]; |
| 573 | } |
| 574 | |
| 575 | table OriginsDescriptor { |
| 576 | concatAxis:uint; |
| 577 | numViews:uint; |
| 578 | numDimensions:uint; |
| 579 | viewOrigins:[UintVector]; |
| 580 | } |
| 581 | |
Jim Flynn | 18ce338 | 2019-03-08 11:08:30 +0000 | [diff] [blame] | 582 | table ViewsDescriptor { |
| 583 | origins:OriginsDescriptor; |
| 584 | viewSizes:[UintVector]; |
| 585 | } |
| 586 | |
| 587 | table SplitterLayer { |
| 588 | base:LayerBase; |
| 589 | descriptor:ViewsDescriptor; |
| 590 | } |
| 591 | |
Nattapat Chaimanowong | 3e14a9d | 2019-03-18 12:37:06 +0000 | [diff] [blame] | 592 | table DetectionPostProcessLayer { |
| 593 | base:LayerBase; |
| 594 | descriptor:DetectionPostProcessDescriptor; |
| 595 | anchors:ConstTensor; |
| 596 | } |
| 597 | |
| 598 | table DetectionPostProcessDescriptor { |
| 599 | maxDetections:uint; |
| 600 | maxClassesPerDetection:uint; |
| 601 | detectionsPerClass:uint; |
| 602 | nmsScoreThreshold:float; |
| 603 | nmsIouThreshold:float; |
| 604 | numClasses:uint; |
| 605 | useRegularNms:bool; |
| 606 | scaleX:float; |
| 607 | scaleY:float; |
| 608 | scaleW:float; |
| 609 | scaleH:float; |
| 610 | } |
| 611 | |
Jim Flynn | 11af375 | 2019-03-19 17:22:29 +0000 | [diff] [blame] | 612 | table LstmInputParams { |
| 613 | inputToForgetWeights:ConstTensor; |
| 614 | inputToCellWeights:ConstTensor; |
| 615 | inputToOutputWeights:ConstTensor; |
| 616 | recurrentToForgetWeights:ConstTensor; |
| 617 | recurrentToCellWeights:ConstTensor; |
| 618 | recurrentToOutputWeights:ConstTensor; |
| 619 | forgetGateBias:ConstTensor; |
| 620 | cellBias:ConstTensor; |
| 621 | outputGateBias:ConstTensor; |
| 622 | |
| 623 | inputToInputWeights:ConstTensor; |
| 624 | recurrentToInputWeights:ConstTensor; |
| 625 | cellToInputWeights:ConstTensor; |
| 626 | inputGateBias:ConstTensor; |
| 627 | |
| 628 | projectionWeights:ConstTensor; |
| 629 | projectionBias:ConstTensor; |
| 630 | |
| 631 | cellToForgetWeights:ConstTensor; |
| 632 | cellToOutputWeights:ConstTensor; |
Jan Eilers | f8c6297 | 2019-07-17 11:07:49 +0100 | [diff] [blame] | 633 | |
| 634 | inputLayerNormWeights:ConstTensor; |
| 635 | forgetLayerNormWeights:ConstTensor; |
| 636 | cellLayerNormWeights:ConstTensor; |
| 637 | outputLayerNormWeights:ConstTensor; |
Jim Flynn | 11af375 | 2019-03-19 17:22:29 +0000 | [diff] [blame] | 638 | } |
| 639 | |
Jan Eilers | 5b01a89 | 2019-07-23 09:47:43 +0100 | [diff] [blame] | 640 | table QuantizedLstmInputParams { |
| 641 | inputToInputWeights:ConstTensor; |
| 642 | inputToForgetWeights:ConstTensor; |
| 643 | inputToCellWeights:ConstTensor; |
| 644 | inputToOutputWeights:ConstTensor; |
| 645 | |
| 646 | recurrentToInputWeights:ConstTensor; |
| 647 | recurrentToForgetWeights:ConstTensor; |
| 648 | recurrentToCellWeights:ConstTensor; |
| 649 | recurrentToOutputWeights:ConstTensor; |
| 650 | |
| 651 | inputGateBias:ConstTensor; |
| 652 | forgetGateBias:ConstTensor; |
| 653 | cellBias:ConstTensor; |
| 654 | outputGateBias:ConstTensor; |
| 655 | } |
| 656 | |
Jim Flynn | 11af375 | 2019-03-19 17:22:29 +0000 | [diff] [blame] | 657 | table LstmDescriptor { |
| 658 | activationFunc:uint; |
| 659 | clippingThresCell:float; |
| 660 | clippingThresProj:float; |
| 661 | cifgEnabled:bool = true; |
| 662 | peepholeEnabled:bool = false; |
| 663 | projectionEnabled:bool = false; |
Jan Eilers | f8c6297 | 2019-07-17 11:07:49 +0100 | [diff] [blame] | 664 | layerNormEnabled:bool = false; |
Jim Flynn | 11af375 | 2019-03-19 17:22:29 +0000 | [diff] [blame] | 665 | } |
| 666 | |
| 667 | table LstmLayer { |
| 668 | base:LayerBase; |
| 669 | descriptor:LstmDescriptor; |
| 670 | inputParams:LstmInputParams; |
| 671 | } |
| 672 | |
Jan Eilers | 5b01a89 | 2019-07-23 09:47:43 +0100 | [diff] [blame] | 673 | table QuantizedLstmLayer { |
| 674 | base:LayerBase; |
| 675 | inputParams:QuantizedLstmInputParams; |
| 676 | } |
| 677 | |
Nattapat Chaimanowong | e4294fd | 2019-03-28 09:56:53 +0000 | [diff] [blame] | 678 | table DequantizeLayer { |
| 679 | base:LayerBase; |
| 680 | } |
| 681 | |
Nattapat Chaimanowong | 1f88630 | 2019-04-05 13:37:19 +0100 | [diff] [blame] | 682 | table MergeLayer { |
| 683 | base:LayerBase; |
| 684 | } |
| 685 | |
Sadik Armagan | eff363d | 2019-04-05 15:25:46 +0100 | [diff] [blame] | 686 | table SwitchLayer { |
| 687 | base:LayerBase; |
| 688 | } |
| 689 | |
Ellen Norris-Thompson | 5198247 | 2019-06-19 11:46:21 +0100 | [diff] [blame] | 690 | table PreluLayer { |
| 691 | base:LayerBase; |
| 692 | } |
| 693 | |
Aron Virginas-Tar | cb54930 | 2019-06-21 13:53:38 +0100 | [diff] [blame] | 694 | table TransposeConvolution2dLayer { |
| 695 | base:LayerBase; |
| 696 | descriptor:TransposeConvolution2dDescriptor; |
| 697 | weights:ConstTensor; |
| 698 | biases:ConstTensor; |
| 699 | } |
| 700 | |
| 701 | table TransposeConvolution2dDescriptor { |
| 702 | padLeft:uint; |
| 703 | padRight:uint; |
| 704 | padTop:uint; |
| 705 | padBottom:uint; |
| 706 | strideX:uint; |
| 707 | strideY:uint; |
| 708 | biasEnabled:bool = false; |
| 709 | dataLayout:DataLayout = NCHW; |
| 710 | } |
| 711 | |
FinnWilliamsArm | 6fb339a | 2019-06-28 15:07:10 +0100 | [diff] [blame] | 712 | table ResizeLayer { |
| 713 | base:LayerBase; |
| 714 | descriptor:ResizeDescriptor; |
| 715 | } |
| 716 | |
| 717 | table ResizeDescriptor { |
| 718 | targetHeight:uint; |
| 719 | targetWidth:uint; |
| 720 | method:ResizeMethod = NearestNeighbor; |
| 721 | dataLayout:DataLayout; |
| 722 | } |
| 723 | |
Matthew Jackson | b5433ee | 2019-07-11 15:54:20 +0100 | [diff] [blame] | 724 | table StackLayer { |
| 725 | base:LayerBase; |
| 726 | descriptor:StackDescriptor; |
| 727 | } |
| 728 | |
| 729 | table StackDescriptor { |
| 730 | axis:uint; |
| 731 | numInputs:uint; |
| 732 | inputShape:[uint]; |
| 733 | } |
| 734 | |
Aron Virginas-Tar | 85121a2 | 2019-10-23 10:41:35 +0100 | [diff] [blame^] | 735 | table StandInDescriptor { |
| 736 | numInputs:uint; |
| 737 | numOutputs:uint; |
| 738 | } |
| 739 | |
| 740 | table StandInLayer { |
| 741 | base:LayerBase; |
| 742 | descriptor:StandInDescriptor; |
| 743 | } |
| 744 | |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 745 | union Layer { |
Mike Kelly | af48401 | 2019-02-20 16:53:11 +0000 | [diff] [blame] | 746 | ActivationLayer, |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 747 | AdditionLayer, |
Nattapat Chaimanowong | 6b4ed98 | 2019-02-26 17:24:13 +0000 | [diff] [blame] | 748 | BatchToSpaceNdLayer, |
ruoyan01 | 8e7fa23 | 2019-02-28 15:09:07 +0000 | [diff] [blame] | 749 | BatchNormalizationLayer, |
Conor Kennedy | 7627788 | 2019-02-26 08:29:54 +0000 | [diff] [blame] | 750 | ConstantLayer, |
Mike Kelly | a0766c3 | 2019-02-19 17:22:07 +0000 | [diff] [blame] | 751 | Convolution2dLayer, |
Aron Virginas-Tar | c04125f | 2019-02-19 16:31:08 +0000 | [diff] [blame] | 752 | DepthwiseConvolution2dLayer, |
Sadik Armagan | dbb0c0c | 2019-02-21 09:01:41 +0000 | [diff] [blame] | 753 | FullyConnectedLayer, |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 754 | InputLayer, |
Sadik Armagan | 5f45027 | 2019-02-12 14:31:45 +0000 | [diff] [blame] | 755 | MultiplicationLayer, |
Aron Virginas-Tar | fc413c0 | 2019-02-13 15:41:52 +0000 | [diff] [blame] | 756 | OutputLayer, |
Nattapat Chaimanowong | 30b0020 | 2019-02-20 17:31:34 +0000 | [diff] [blame] | 757 | PermuteLayer, |
Saoirse Stewart | 3166c3e | 2019-02-18 15:24:53 +0000 | [diff] [blame] | 758 | Pooling2dLayer, |
Saoirse Stewart | 263829c | 2019-02-19 15:54:14 +0000 | [diff] [blame] | 759 | ReshapeLayer, |
Nattapat Chaimanowong | 4528699 | 2019-02-26 15:53:02 +0000 | [diff] [blame] | 760 | SoftmaxLayer, |
Éanna Ó Catháin | 5888589 | 2019-02-27 16:16:39 +0000 | [diff] [blame] | 761 | SpaceToBatchNdLayer, |
Aron Virginas-Tar | 0fe3245 | 2019-02-28 13:12:47 +0000 | [diff] [blame] | 762 | DivisionLayer, |
Nattapat Chaimanowong | 235cea5 | 2019-02-28 16:27:30 +0000 | [diff] [blame] | 763 | MinimumLayer, |
Aron Virginas-Tar | 377351e | 2019-02-27 14:42:31 +0000 | [diff] [blame] | 764 | EqualLayer, |
Nina Drozd | 5772878 | 2019-02-27 10:53:27 +0000 | [diff] [blame] | 765 | MaximumLayer, |
Nattapat Chaimanowong | ebb0f9c | 2019-03-01 12:14:06 +0000 | [diff] [blame] | 766 | NormalizationLayer, |
Sadik Armagan | 8b42a38 | 2019-03-01 14:24:49 +0000 | [diff] [blame] | 767 | PadLayer, |
Finn Williams | dd2ba7e | 2019-03-01 11:51:52 +0000 | [diff] [blame] | 768 | RsqrtLayer, |
Conor Kennedy | 79ffdf5 | 2019-03-01 14:24:54 +0000 | [diff] [blame] | 769 | FloorLayer, |
Nattapat Chaimanowong | 6522cdc | 2019-03-01 16:14:13 +0000 | [diff] [blame] | 770 | GreaterLayer, |
Conor Kennedy | da1f975 | 2019-03-01 14:37:12 +0000 | [diff] [blame] | 771 | ResizeBilinearLayer, |
Nattapat Chaimanowong | b348521 | 2019-03-04 12:35:39 +0000 | [diff] [blame] | 772 | SubtractionLayer, |
Saoirse Stewart | a1ed73a | 2019-03-04 13:40:12 +0000 | [diff] [blame] | 773 | StridedSliceLayer, |
Sadik Armagan | ac97c8c | 2019-03-04 17:44:21 +0000 | [diff] [blame] | 774 | GatherLayer, |
Jim Flynn | ac25a1b | 2019-02-28 10:40:49 +0000 | [diff] [blame] | 775 | MeanLayer, |
Narumol Prangnawarat | 495701f | 2019-03-07 17:31:34 +0000 | [diff] [blame] | 776 | MergerLayer, |
Jim Flynn | 18ce338 | 2019-03-08 11:08:30 +0000 | [diff] [blame] | 777 | L2NormalizationLayer, |
Nattapat Chaimanowong | 3e14a9d | 2019-03-18 12:37:06 +0000 | [diff] [blame] | 778 | SplitterLayer, |
Jim Flynn | 11af375 | 2019-03-19 17:22:29 +0000 | [diff] [blame] | 779 | DetectionPostProcessLayer, |
Derek Lamberti | 87acb27 | 2019-03-27 16:51:31 +0000 | [diff] [blame] | 780 | LstmLayer, |
Jan Eilers | 5b01a89 | 2019-07-23 09:47:43 +0100 | [diff] [blame] | 781 | QuantizedLstmLayer, |
Nattapat Chaimanowong | e4294fd | 2019-03-28 09:56:53 +0000 | [diff] [blame] | 782 | QuantizeLayer, |
Nattapat Chaimanowong | 1f88630 | 2019-04-05 13:37:19 +0100 | [diff] [blame] | 783 | DequantizeLayer, |
Sadik Armagan | eff363d | 2019-04-05 15:25:46 +0100 | [diff] [blame] | 784 | MergeLayer, |
Jim Flynn | e242f2d | 2019-05-22 14:24:13 +0100 | [diff] [blame] | 785 | SwitchLayer, |
Aron Virginas-Tar | aa06714 | 2019-06-11 16:01:44 +0100 | [diff] [blame] | 786 | ConcatLayer, |
Ellen Norris-Thompson | 5198247 | 2019-06-19 11:46:21 +0100 | [diff] [blame] | 787 | SpaceToDepthLayer, |
Aron Virginas-Tar | cb54930 | 2019-06-21 13:53:38 +0100 | [diff] [blame] | 788 | PreluLayer, |
FinnWilliamsArm | 6fb339a | 2019-06-28 15:07:10 +0100 | [diff] [blame] | 789 | TransposeConvolution2dLayer, |
Matthew Jackson | b5433ee | 2019-07-11 15:54:20 +0100 | [diff] [blame] | 790 | ResizeLayer, |
FinnWilliamsArm | 4ffcc8f | 2019-09-05 14:34:20 +0100 | [diff] [blame] | 791 | StackLayer, |
Narumol Prangnawarat | 0cfcf23 | 2019-09-09 17:16:24 +0100 | [diff] [blame] | 792 | AbsLayer, |
Aron Virginas-Tar | 2fda80b | 2019-09-18 13:36:52 +0100 | [diff] [blame] | 793 | ArgMinMaxLayer, |
Aron Virginas-Tar | da9d2d3 | 2019-09-20 10:42:02 +0100 | [diff] [blame] | 794 | SliceLayer, |
Aron Virginas-Tar | 781ced9 | 2019-10-03 11:15:39 +0100 | [diff] [blame] | 795 | DepthToSpaceLayer, |
Sadik Armagan | 2625785 | 2019-10-14 13:00:47 +0100 | [diff] [blame] | 796 | InstanceNormalizationLayer, |
Aron Virginas-Tar | e80ebd1 | 2019-10-17 16:11:54 +0100 | [diff] [blame] | 797 | LogSoftmaxLayer, |
Aron Virginas-Tar | 85121a2 | 2019-10-23 10:41:35 +0100 | [diff] [blame^] | 798 | ComparisonLayer, |
| 799 | StandInLayer |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 800 | } |
| 801 | |
Saoirse Stewart | 49dbe0e | 2019-02-05 17:27:06 +0000 | [diff] [blame] | 802 | table AnyLayer { |
| 803 | layer:Layer; |
| 804 | } |
| 805 | |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 806 | // Root type for serialized data is the graph of the network |
| 807 | table SerializedGraph { |
Saoirse Stewart | 49dbe0e | 2019-02-05 17:27:06 +0000 | [diff] [blame] | 808 | layers:[AnyLayer]; |
Mike Kelly | 8c1701a | 2019-02-11 17:01:27 +0000 | [diff] [blame] | 809 | inputIds:[uint]; |
| 810 | outputIds:[uint]; |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 811 | } |
| 812 | |
| 813 | root_type SerializedGraph; |