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