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