Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 1 | // |
Kevin May | e3cc716 | 2024-02-26 09:12:23 +0000 | [diff] [blame^] | 2 | // Copyright © 2017,2019-2024 Arm Ltd and Contributors. All rights reserved. |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 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, |
Teresa Charlin | 077cddb | 2023-09-15 15:19:21 +0100 | [diff] [blame] | 24 | HardSwish = 11, |
| 25 | Gelu = 12 |
Mike Kelly | af48401 | 2019-02-20 16:53:11 +0000 | [diff] [blame] | 26 | } |
| 27 | |
Narumol Prangnawarat | 0cfcf23 | 2019-09-09 17:16:24 +0100 | [diff] [blame] | 28 | enum ArgMinMaxFunction : byte { |
| 29 | Min = 0, |
| 30 | Max = 1 |
| 31 | } |
| 32 | |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 33 | enum DataType : byte { |
| 34 | Float16 = 0, |
| 35 | Float32 = 1, |
Derek Lamberti | f90c56d | 2020-01-10 17:14:08 +0000 | [diff] [blame] | 36 | QuantisedAsymm8 = 2, // deprecated |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 37 | Signed32 = 3, |
Nattapat Chaimanowong | cd5ac23 | 2019-03-19 12:26:36 +0000 | [diff] [blame] | 38 | Boolean = 4, |
Derek Lamberti | f90c56d | 2020-01-10 17:14:08 +0000 | [diff] [blame] | 39 | QuantisedSymm16 = 5, // deprecated |
| 40 | QAsymmU8 = 6, |
Francis Murtagh | ddb1d06 | 2020-03-10 13:51:45 +0000 | [diff] [blame] | 41 | QSymmS16 = 7, |
Sadik Armagan | 1a84fe3 | 2020-03-27 15:56:57 +0000 | [diff] [blame] | 42 | QAsymmS8 = 8, |
Mike Kelly | 1f140f7 | 2021-04-06 12:25:55 +0100 | [diff] [blame] | 43 | QSymmS8 = 9, |
| 44 | Signed64 = 10 |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 45 | } |
| 46 | |
Saoirse Stewart | 3166c3e | 2019-02-18 15:24:53 +0000 | [diff] [blame] | 47 | enum DataLayout : byte { |
| 48 | NHWC = 0, |
Matthew Sloyan | b63a311 | 2021-09-08 13:05:51 +0100 | [diff] [blame] | 49 | NCHW = 1, |
Matthew Sloyan | 5d7b0a3 | 2021-10-18 13:07:49 +0100 | [diff] [blame] | 50 | NDHWC = 2, |
| 51 | NCDHW = 3 |
Saoirse Stewart | 3166c3e | 2019-02-18 15:24:53 +0000 | [diff] [blame] | 52 | } |
| 53 | |
Sadik Armagan | 0c3ea5b | 2021-02-03 09:29:30 +0000 | [diff] [blame] | 54 | enum ReduceOperation: byte { |
| 55 | Sum = 0, |
| 56 | Max = 1, |
| 57 | Mean = 2, |
Teresa Charlin | 4e3e831 | 2021-08-05 12:34:37 +0100 | [diff] [blame] | 58 | Min = 3, |
| 59 | Prod = 4 |
Sadik Armagan | 0c3ea5b | 2021-02-03 09:29:30 +0000 | [diff] [blame] | 60 | } |
| 61 | |
FinnWilliamsArm | 6fb339a | 2019-06-28 15:07:10 +0100 | [diff] [blame] | 62 | enum ResizeMethod: byte { |
| 63 | NearestNeighbor = 0, |
| 64 | Bilinear = 1, |
| 65 | } |
| 66 | |
Kevin May | e3cc716 | 2024-02-26 09:12:23 +0000 | [diff] [blame^] | 67 | enum ScatterNdFunction: byte { |
| 68 | Update = 0, |
| 69 | Add = 1, |
| 70 | Sub = 2, |
| 71 | Max = 3, |
| 72 | Min = 4 |
| 73 | } |
| 74 | |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 75 | table TensorInfo { |
| 76 | dimensions:[uint]; |
| 77 | dataType:DataType; |
Sadik Armagan | 1a84fe3 | 2020-03-27 15:56:57 +0000 | [diff] [blame] | 78 | quantizationScale:float = 1.0; // @deprecated Use quantizationScales instead |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 79 | quantizationOffset:int = 0; |
Sadik Armagan | 1a84fe3 | 2020-03-27 15:56:57 +0000 | [diff] [blame] | 80 | quantizationScales:[float]; |
| 81 | quantizationDim:uint; |
Finn Williams | 2605b23 | 2020-06-10 15:53:46 +0100 | [diff] [blame] | 82 | dimensionality:uint = 1; |
Colm Donelan | 800b281 | 2021-02-12 12:43:35 +0000 | [diff] [blame] | 83 | dimensionSpecificity:[bool]; |
Matthew Sloyan | 81beae3 | 2021-07-13 19:46:11 +0100 | [diff] [blame] | 84 | isConstant:bool = false; |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 85 | } |
| 86 | |
| 87 | struct Connection { |
| 88 | sourceLayerIndex:uint; |
| 89 | outputSlotIndex:uint; |
| 90 | } |
| 91 | |
| 92 | table ByteData { |
| 93 | data:[byte]; |
| 94 | } |
| 95 | |
| 96 | table ShortData { |
| 97 | data:[short]; |
| 98 | } |
| 99 | |
| 100 | table IntData { |
| 101 | data:[int]; |
| 102 | } |
| 103 | |
| 104 | table LongData { |
| 105 | data:[long]; |
| 106 | } |
| 107 | |
| 108 | union ConstTensorData { ByteData, ShortData, IntData, LongData } |
| 109 | |
| 110 | table ConstTensor { |
| 111 | info:TensorInfo; |
| 112 | data:ConstTensorData; |
| 113 | } |
| 114 | |
| 115 | table InputSlot { |
| 116 | index:uint; |
| 117 | connection:Connection; |
Mike Kelly | 4cc341c | 2023-07-07 15:43:06 +0100 | [diff] [blame] | 118 | isOverridden:bool; |
| 119 | overriddenTensorInfo:TensorInfo; |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 120 | } |
| 121 | |
| 122 | table OutputSlot { |
| 123 | index:uint; |
| 124 | tensorInfo:TensorInfo; |
| 125 | } |
| 126 | |
| 127 | enum LayerType : uint { |
| 128 | Addition = 0, |
| 129 | Input = 1, |
Sadik Armagan | 5f45027 | 2019-02-12 14:31:45 +0000 | [diff] [blame] | 130 | Multiplication = 2, |
Aron Virginas-Tar | fc413c0 | 2019-02-13 15:41:52 +0000 | [diff] [blame] | 131 | Output = 3, |
Saoirse Stewart | 3166c3e | 2019-02-18 15:24:53 +0000 | [diff] [blame] | 132 | Pooling2d = 4, |
Saoirse Stewart | 263829c | 2019-02-19 15:54:14 +0000 | [diff] [blame] | 133 | Reshape = 5, |
Mike Kelly | a0766c3 | 2019-02-19 17:22:07 +0000 | [diff] [blame] | 134 | Softmax = 6, |
Aron Virginas-Tar | c04125f | 2019-02-19 16:31:08 +0000 | [diff] [blame] | 135 | Convolution2d = 7, |
Mike Kelly | af48401 | 2019-02-20 16:53:11 +0000 | [diff] [blame] | 136 | DepthwiseConvolution2d = 8, |
Nattapat Chaimanowong | 30b0020 | 2019-02-20 17:31:34 +0000 | [diff] [blame] | 137 | Activation = 9, |
Sadik Armagan | dbb0c0c | 2019-02-21 09:01:41 +0000 | [diff] [blame] | 138 | Permute = 10, |
Conor Kennedy | 7627788 | 2019-02-26 08:29:54 +0000 | [diff] [blame] | 139 | FullyConnected = 11, |
Nattapat Chaimanowong | 4528699 | 2019-02-26 15:53:02 +0000 | [diff] [blame] | 140 | Constant = 12, |
Nattapat Chaimanowong | 6b4ed98 | 2019-02-26 17:24:13 +0000 | [diff] [blame] | 141 | SpaceToBatchNd = 13, |
Éanna Ó Catháin | 5888589 | 2019-02-27 16:16:39 +0000 | [diff] [blame] | 142 | BatchToSpaceNd = 14, |
Aron Virginas-Tar | 0fe3245 | 2019-02-28 13:12:47 +0000 | [diff] [blame] | 143 | Division = 15, |
Nattapat Chaimanowong | 235cea5 | 2019-02-28 16:27:30 +0000 | [diff] [blame] | 144 | Minimum = 16, |
Aron Virginas-Tar | 377351e | 2019-02-27 14:42:31 +0000 | [diff] [blame] | 145 | Equal = 17, |
Nina Drozd | 5772878 | 2019-02-27 10:53:27 +0000 | [diff] [blame] | 146 | Maximum = 18, |
Nattapat Chaimanowong | ebb0f9c | 2019-03-01 12:14:06 +0000 | [diff] [blame] | 147 | Normalization = 19, |
Sadik Armagan | 8b42a38 | 2019-03-01 14:24:49 +0000 | [diff] [blame] | 148 | Pad = 20, |
Finn Williams | dd2ba7e | 2019-03-01 11:51:52 +0000 | [diff] [blame] | 149 | Rsqrt = 21, |
ruoyan01 | 8e7fa23 | 2019-02-28 15:09:07 +0000 | [diff] [blame] | 150 | Floor = 22, |
Conor Kennedy | 79ffdf5 | 2019-03-01 14:24:54 +0000 | [diff] [blame] | 151 | BatchNormalization = 23, |
Nattapat Chaimanowong | 6522cdc | 2019-03-01 16:14:13 +0000 | [diff] [blame] | 152 | Greater = 24, |
Conor Kennedy | da1f975 | 2019-03-01 14:37:12 +0000 | [diff] [blame] | 153 | ResizeBilinear = 25, |
Nattapat Chaimanowong | b348521 | 2019-03-04 12:35:39 +0000 | [diff] [blame] | 154 | Subtraction = 26, |
Saoirse Stewart | a1ed73a | 2019-03-04 13:40:12 +0000 | [diff] [blame] | 155 | StridedSlice = 27, |
Sadik Armagan | ac97c8c | 2019-03-04 17:44:21 +0000 | [diff] [blame] | 156 | Gather = 28, |
Jim Flynn | ac25a1b | 2019-02-28 10:40:49 +0000 | [diff] [blame] | 157 | Mean = 29, |
Narumol Prangnawarat | 495701f | 2019-03-07 17:31:34 +0000 | [diff] [blame] | 158 | Merger = 30, |
Jim Flynn | 18ce338 | 2019-03-08 11:08:30 +0000 | [diff] [blame] | 159 | L2Normalization = 31, |
Nattapat Chaimanowong | 3e14a9d | 2019-03-18 12:37:06 +0000 | [diff] [blame] | 160 | Splitter = 32, |
Jim Flynn | 11af375 | 2019-03-19 17:22:29 +0000 | [diff] [blame] | 161 | DetectionPostProcess = 33, |
Derek Lamberti | 87acb27 | 2019-03-27 16:51:31 +0000 | [diff] [blame] | 162 | Lstm = 34, |
Nattapat Chaimanowong | e4294fd | 2019-03-28 09:56:53 +0000 | [diff] [blame] | 163 | Quantize = 35, |
Nattapat Chaimanowong | 1f88630 | 2019-04-05 13:37:19 +0100 | [diff] [blame] | 164 | Dequantize = 36, |
Sadik Armagan | eff363d | 2019-04-05 15:25:46 +0100 | [diff] [blame] | 165 | Merge = 37, |
Jim Flynn | e242f2d | 2019-05-22 14:24:13 +0100 | [diff] [blame] | 166 | Switch = 38, |
Aron Virginas-Tar | aa06714 | 2019-06-11 16:01:44 +0100 | [diff] [blame] | 167 | Concat = 39, |
Ellen Norris-Thompson | 5198247 | 2019-06-19 11:46:21 +0100 | [diff] [blame] | 168 | SpaceToDepth = 40, |
Aron Virginas-Tar | cb54930 | 2019-06-21 13:53:38 +0100 | [diff] [blame] | 169 | Prelu = 41, |
FinnWilliamsArm | 6fb339a | 2019-06-28 15:07:10 +0100 | [diff] [blame] | 170 | TransposeConvolution2d = 42, |
Matthew Jackson | b5433ee | 2019-07-11 15:54:20 +0100 | [diff] [blame] | 171 | Resize = 43, |
Jan Eilers | 5b01a89 | 2019-07-23 09:47:43 +0100 | [diff] [blame] | 172 | Stack = 44, |
FinnWilliamsArm | 4ffcc8f | 2019-09-05 14:34:20 +0100 | [diff] [blame] | 173 | QuantizedLstm = 45, |
Narumol Prangnawarat | 0cfcf23 | 2019-09-09 17:16:24 +0100 | [diff] [blame] | 174 | Abs = 46, |
Aron Virginas-Tar | 2fda80b | 2019-09-18 13:36:52 +0100 | [diff] [blame] | 175 | ArgMinMax = 47, |
Aron Virginas-Tar | da9d2d3 | 2019-09-20 10:42:02 +0100 | [diff] [blame] | 176 | Slice = 48, |
Aron Virginas-Tar | 781ced9 | 2019-10-03 11:15:39 +0100 | [diff] [blame] | 177 | DepthToSpace = 49, |
Sadik Armagan | 2625785 | 2019-10-14 13:00:47 +0100 | [diff] [blame] | 178 | InstanceNormalization = 50, |
Aron Virginas-Tar | e80ebd1 | 2019-10-17 16:11:54 +0100 | [diff] [blame] | 179 | LogSoftmax = 51, |
Aron Virginas-Tar | 85121a2 | 2019-10-23 10:41:35 +0100 | [diff] [blame] | 180 | Comparison = 52, |
josh minor | 4a3c610 | 2020-01-06 16:40:46 -0600 | [diff] [blame] | 181 | StandIn = 53, |
Mike Kelly | c9ea45a | 2020-02-28 18:11:58 +0000 | [diff] [blame] | 182 | ElementwiseUnary = 54, |
James Conroy | 8d33318 | 2020-05-13 10:27:58 +0100 | [diff] [blame] | 183 | Transpose = 55, |
Keith Davis | 300ad56 | 2020-06-04 16:34:23 +0100 | [diff] [blame] | 184 | QLstm = 56, |
Finn Williams | 2605b23 | 2020-06-10 15:53:46 +0100 | [diff] [blame] | 185 | Fill = 57, |
James Conroy | aba90cd | 2020-11-06 16:28:18 +0000 | [diff] [blame] | 186 | Rank = 58, |
Sadik Armagan | 0c3ea5b | 2021-02-03 09:29:30 +0000 | [diff] [blame] | 187 | LogicalBinary = 59, |
mathad01 | b392e98 | 2021-04-07 12:07:30 +0100 | [diff] [blame] | 188 | Reduce = 60, |
Keith Davis | 3ae3f97 | 2021-05-21 16:33:48 +0100 | [diff] [blame] | 189 | Cast = 61, |
Narumol Prangnawarat | a0162e1 | 2021-07-23 14:47:49 +0100 | [diff] [blame] | 190 | Shape = 62, |
| 191 | UnidirectionalSequenceLstm = 63, |
Simon Obute | 51f6777 | 2021-09-03 15:50:13 +0100 | [diff] [blame] | 192 | ChannelShuffle = 64, |
Matthew Sloyan | b63a311 | 2021-09-08 13:05:51 +0100 | [diff] [blame] | 193 | Convolution3d = 65, |
Tamas Nyiri | d998a1c | 2021-11-05 14:55:33 +0000 | [diff] [blame] | 194 | Pooling3d = 66, |
Teresa Charlin | 6966bfa | 2022-04-25 17:14:50 +0100 | [diff] [blame] | 195 | GatherNd = 67, |
Samuel Yap | a04f4a1 | 2022-08-19 11:14:38 +0100 | [diff] [blame] | 196 | BatchMatMul = 68, |
Mike Kelly | 3ec3077 | 2023-03-08 13:47:17 +0000 | [diff] [blame] | 197 | ElementwiseBinary = 69, |
Tracy Narine | 944fb50 | 2023-07-04 15:08:57 +0100 | [diff] [blame] | 198 | ReverseV2 = 70, |
David Monahan | 616b22f | 2023-07-25 12:08:10 +0100 | [diff] [blame] | 199 | Tile = 71, |
Kevin May | e3cc716 | 2024-02-26 09:12:23 +0000 | [diff] [blame^] | 200 | ScatterNd = 72, |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 201 | } |
| 202 | |
| 203 | // Base layer table to be used as part of other layers |
| 204 | table LayerBase { |
| 205 | index:uint; |
| 206 | layerName:string; |
| 207 | layerType:LayerType; |
| 208 | inputSlots:[InputSlot]; |
| 209 | outputSlots:[OutputSlot]; |
| 210 | } |
| 211 | |
| 212 | table BindableLayerBase { |
| 213 | base:LayerBase; |
| 214 | layerBindingId:int; |
| 215 | } |
| 216 | |
| 217 | // Table for each layer defined below |
FinnWilliamsArm | 4ffcc8f | 2019-09-05 14:34:20 +0100 | [diff] [blame] | 218 | |
josh minor | 4a3c610 | 2020-01-06 16:40:46 -0600 | [diff] [blame] | 219 | /// @deprecated Use ElementwiseUnaryLayer instead |
FinnWilliamsArm | 4ffcc8f | 2019-09-05 14:34:20 +0100 | [diff] [blame] | 220 | table AbsLayer { |
| 221 | base:LayerBase; |
| 222 | } |
| 223 | |
Mike Kelly | af48401 | 2019-02-20 16:53:11 +0000 | [diff] [blame] | 224 | table ActivationLayer { |
| 225 | base:LayerBase; |
| 226 | descriptor:ActivationDescriptor; |
| 227 | } |
| 228 | |
| 229 | table ActivationDescriptor { |
Tee Jung | 86bc3d8 | 2019-10-01 11:25:56 +0900 | [diff] [blame] | 230 | activationFunction:ActivationFunction = Sigmoid; |
Mike Kelly | af48401 | 2019-02-20 16:53:11 +0000 | [diff] [blame] | 231 | a:float; |
| 232 | b:float; |
| 233 | } |
| 234 | |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 235 | table AdditionLayer { |
| 236 | base:LayerBase; |
| 237 | } |
| 238 | |
Narumol Prangnawarat | 0cfcf23 | 2019-09-09 17:16:24 +0100 | [diff] [blame] | 239 | table ArgMinMaxLayer { |
| 240 | base:LayerBase; |
| 241 | descriptor:ArgMinMaxDescriptor; |
| 242 | } |
| 243 | |
| 244 | table ArgMinMaxDescriptor{ |
Tee Jung | 86bc3d8 | 2019-10-01 11:25:56 +0900 | [diff] [blame] | 245 | argMinMaxFunction:ArgMinMaxFunction; |
Narumol Prangnawarat | 0cfcf23 | 2019-09-09 17:16:24 +0100 | [diff] [blame] | 246 | axis:int; |
| 247 | } |
| 248 | |
mathad01 | b392e98 | 2021-04-07 12:07:30 +0100 | [diff] [blame] | 249 | table CastLayer { |
| 250 | base:LayerBase; |
| 251 | } |
| 252 | |
Simon Obute | 51f6777 | 2021-09-03 15:50:13 +0100 | [diff] [blame] | 253 | table ChannelShuffleLayer { |
| 254 | base:LayerBase; |
| 255 | descriptor:ChannelShuffleDescriptor; |
| 256 | } |
| 257 | |
| 258 | table ChannelShuffleDescriptor { |
| 259 | axis:uint = 0; |
| 260 | numGroups:uint = 0; |
| 261 | } |
| 262 | |
Aron Virginas-Tar | e80ebd1 | 2019-10-17 16:11:54 +0100 | [diff] [blame] | 263 | enum ComparisonOperation : byte { |
| 264 | Equal = 0, |
| 265 | Greater = 1, |
| 266 | GreaterOrEqual = 2, |
| 267 | Less = 3, |
| 268 | LessOrEqual = 4, |
| 269 | NotEqual = 5 |
| 270 | } |
| 271 | |
| 272 | table ComparisonDescriptor { |
| 273 | operation:ComparisonOperation; |
| 274 | } |
| 275 | |
| 276 | table ComparisonLayer { |
| 277 | base:LayerBase; |
| 278 | descriptor:ComparisonDescriptor; |
| 279 | } |
| 280 | |
Conor Kennedy | 7627788 | 2019-02-26 08:29:54 +0000 | [diff] [blame] | 281 | table ConstantLayer { |
| 282 | base:LayerBase; |
| 283 | input:ConstTensor; |
| 284 | } |
| 285 | |
Mike Kelly | a0766c3 | 2019-02-19 17:22:07 +0000 | [diff] [blame] | 286 | table Convolution2dLayer { |
| 287 | base:LayerBase; |
| 288 | descriptor:Convolution2dDescriptor; |
| 289 | weights:ConstTensor; |
| 290 | biases:ConstTensor; |
| 291 | } |
| 292 | |
| 293 | table Convolution2dDescriptor { |
| 294 | padLeft:uint; |
| 295 | padRight:uint; |
| 296 | padTop:uint; |
| 297 | padBottom:uint; |
| 298 | strideX:uint; |
| 299 | strideY:uint; |
Matthew Bentham | acad04e | 2019-05-13 10:02:45 +0100 | [diff] [blame] | 300 | dilationX:uint = 1; |
| 301 | dilationY:uint = 1; |
Mike Kelly | a0766c3 | 2019-02-19 17:22:07 +0000 | [diff] [blame] | 302 | biasEnabled:bool = false; |
| 303 | dataLayout:DataLayout = NCHW; |
| 304 | } |
| 305 | |
Matthew Sloyan | b63a311 | 2021-09-08 13:05:51 +0100 | [diff] [blame] | 306 | table Convolution3dLayer { |
| 307 | base:LayerBase; |
| 308 | descriptor:Convolution3dDescriptor; |
Matthew Sloyan | b63a311 | 2021-09-08 13:05:51 +0100 | [diff] [blame] | 309 | } |
| 310 | |
| 311 | table Convolution3dDescriptor { |
| 312 | padLeft:uint; |
| 313 | padRight:uint; |
| 314 | padTop:uint; |
| 315 | padBottom:uint; |
| 316 | padFront:uint; |
| 317 | padBack:uint; |
| 318 | strideX:uint; |
| 319 | strideY:uint; |
| 320 | strideZ:uint; |
| 321 | dilationX:uint = 1; |
| 322 | dilationY:uint = 1; |
| 323 | dilationZ:uint = 1; |
| 324 | biasEnabled:bool = false; |
| 325 | dataLayout:DataLayout = NDHWC; |
| 326 | } |
| 327 | |
Aron Virginas-Tar | da9d2d3 | 2019-09-20 10:42:02 +0100 | [diff] [blame] | 328 | table DepthToSpaceLayer { |
| 329 | base:LayerBase; |
| 330 | descriptor:DepthToSpaceDescriptor; |
| 331 | } |
| 332 | |
| 333 | table DepthToSpaceDescriptor { |
| 334 | blockSize:uint; |
| 335 | dataLayout:DataLayout; |
| 336 | } |
| 337 | |
Éanna Ó Catháin | 5888589 | 2019-02-27 16:16:39 +0000 | [diff] [blame] | 338 | table DivisionLayer { |
| 339 | base:LayerBase; |
| 340 | } |
| 341 | |
Mike Kelly | 3ec3077 | 2023-03-08 13:47:17 +0000 | [diff] [blame] | 342 | enum BinaryOperation : byte { |
| 343 | Add = 0, |
| 344 | Div = 1, |
| 345 | Maximum = 2, |
| 346 | Minimum = 3, |
| 347 | Mul = 4, |
John Mcloughlin | 0ec0087 | 2023-05-15 17:03:49 +0100 | [diff] [blame] | 348 | Sub = 5, |
| 349 | SqDiff = 6, |
| 350 | Power = 7 |
Mike Kelly | 3ec3077 | 2023-03-08 13:47:17 +0000 | [diff] [blame] | 351 | } |
| 352 | |
| 353 | table ElementwiseBinaryDescriptor { |
| 354 | operation:BinaryOperation; |
| 355 | } |
| 356 | |
| 357 | table ElementwiseBinaryLayer { |
| 358 | base:LayerBase; |
| 359 | descriptor:ElementwiseBinaryDescriptor; |
| 360 | } |
| 361 | |
josh minor | 4a3c610 | 2020-01-06 16:40:46 -0600 | [diff] [blame] | 362 | enum UnaryOperation : byte { |
| 363 | Abs = 0, |
| 364 | Rsqrt = 1, |
| 365 | Sqrt = 2, |
| 366 | Exp = 3, |
James Conroy | aba90cd | 2020-11-06 16:28:18 +0000 | [diff] [blame] | 367 | Neg = 4, |
Teresa Charlin | 50de4fa | 2021-05-31 18:47:33 +0100 | [diff] [blame] | 368 | LogicalNot = 5, |
| 369 | Log = 6, |
Teresa Charlin | 93f0ad0 | 2023-03-23 15:28:02 +0000 | [diff] [blame] | 370 | Sin = 7, |
| 371 | Ceil = 8 |
josh minor | 4a3c610 | 2020-01-06 16:40:46 -0600 | [diff] [blame] | 372 | } |
| 373 | |
| 374 | table ElementwiseUnaryDescriptor { |
| 375 | operation:UnaryOperation; |
| 376 | } |
| 377 | |
| 378 | table ElementwiseUnaryLayer { |
| 379 | base:LayerBase; |
| 380 | descriptor:ElementwiseUnaryDescriptor; |
| 381 | } |
| 382 | |
Aron Virginas-Tar | e80ebd1 | 2019-10-17 16:11:54 +0100 | [diff] [blame] | 383 | /// @deprecated Use ComparisonLayer instead |
Nattapat Chaimanowong | 235cea5 | 2019-02-28 16:27:30 +0000 | [diff] [blame] | 384 | table EqualLayer { |
| 385 | base:LayerBase; |
| 386 | } |
| 387 | |
Keith Davis | 300ad56 | 2020-06-04 16:34:23 +0100 | [diff] [blame] | 388 | table FillLayer { |
| 389 | base:LayerBase; |
| 390 | descriptor:FillDescriptor; |
| 391 | } |
| 392 | |
| 393 | table FillDescriptor { |
| 394 | value:float; |
| 395 | } |
| 396 | |
Finn Williams | dd2ba7e | 2019-03-01 11:51:52 +0000 | [diff] [blame] | 397 | table FloorLayer{ |
| 398 | base:LayerBase; |
| 399 | } |
| 400 | |
Sadik Armagan | dbb0c0c | 2019-02-21 09:01:41 +0000 | [diff] [blame] | 401 | table FullyConnectedLayer { |
| 402 | base:LayerBase; |
| 403 | descriptor:FullyConnectedDescriptor; |
Matthew Sloyan | 81beae3 | 2021-07-13 19:46:11 +0100 | [diff] [blame] | 404 | weights:ConstTensor; // ConstTensors are now passed as inputs. |
Sadik Armagan | dbb0c0c | 2019-02-21 09:01:41 +0000 | [diff] [blame] | 405 | biases:ConstTensor; |
| 406 | } |
| 407 | |
| 408 | table FullyConnectedDescriptor { |
| 409 | biasEnabled:bool = false; |
| 410 | transposeWeightsMatrix:bool = false; |
Sadik Armagan | f0a6dec | 2021-03-25 07:46:55 +0000 | [diff] [blame] | 411 | constantWeights:bool = true; |
Sadik Armagan | dbb0c0c | 2019-02-21 09:01:41 +0000 | [diff] [blame] | 412 | } |
| 413 | |
Saoirse Stewart | a1ed73a | 2019-03-04 13:40:12 +0000 | [diff] [blame] | 414 | table GatherLayer { |
| 415 | base:LayerBase; |
Teresa Charlin | 5266473 | 2020-06-29 16:27:03 +0100 | [diff] [blame] | 416 | descriptor:GatherDescriptor; |
| 417 | } |
| 418 | |
| 419 | table GatherDescriptor { |
| 420 | axis:int = 0; |
Saoirse Stewart | a1ed73a | 2019-03-04 13:40:12 +0000 | [diff] [blame] | 421 | } |
| 422 | |
Teresa Charlin | 6966bfa | 2022-04-25 17:14:50 +0100 | [diff] [blame] | 423 | table GatherNdLayer { |
| 424 | base:LayerBase; |
| 425 | } |
| 426 | |
Aron Virginas-Tar | e80ebd1 | 2019-10-17 16:11:54 +0100 | [diff] [blame] | 427 | /// @deprecated Use ComparisonLayer instead |
Conor Kennedy | 79ffdf5 | 2019-03-01 14:24:54 +0000 | [diff] [blame] | 428 | table GreaterLayer { |
| 429 | base:LayerBase; |
| 430 | } |
| 431 | |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 432 | table InputLayer { |
| 433 | base:BindableLayerBase; |
| 434 | } |
| 435 | |
Aron Virginas-Tar | 781ced9 | 2019-10-03 11:15:39 +0100 | [diff] [blame] | 436 | table InstanceNormalizationLayer { |
| 437 | base:LayerBase; |
| 438 | descriptor:InstanceNormalizationDescriptor; |
| 439 | } |
| 440 | |
| 441 | table InstanceNormalizationDescriptor { |
| 442 | gamma:float; |
| 443 | beta:float; |
| 444 | eps:float; |
| 445 | dataLayout:DataLayout; |
| 446 | } |
| 447 | |
Sadik Armagan | 2625785 | 2019-10-14 13:00:47 +0100 | [diff] [blame] | 448 | table LogSoftmaxLayer { |
| 449 | base:LayerBase; |
| 450 | descriptor:LogSoftmaxDescriptor; |
| 451 | } |
| 452 | |
| 453 | table LogSoftmaxDescriptor { |
| 454 | beta:float = 1; |
| 455 | axis:int = -1; |
| 456 | } |
| 457 | |
Narumol Prangnawarat | 495701f | 2019-03-07 17:31:34 +0000 | [diff] [blame] | 458 | table L2NormalizationLayer { |
| 459 | base:LayerBase; |
| 460 | descriptor:L2NormalizationDescriptor; |
| 461 | } |
| 462 | |
| 463 | table L2NormalizationDescriptor { |
| 464 | dataLayout:DataLayout = NCHW; |
Ferran Balaguer | 0dcffec | 2019-06-18 16:25:06 +0100 | [diff] [blame] | 465 | eps:float = 1e-12; |
Narumol Prangnawarat | 495701f | 2019-03-07 17:31:34 +0000 | [diff] [blame] | 466 | } |
| 467 | |
James Conroy | aba90cd | 2020-11-06 16:28:18 +0000 | [diff] [blame] | 468 | enum LogicalBinaryOperation : byte { |
| 469 | LogicalAnd = 0, |
| 470 | LogicalOr = 1 |
| 471 | } |
| 472 | |
| 473 | table LogicalBinaryDescriptor { |
| 474 | operation:LogicalBinaryOperation; |
| 475 | } |
| 476 | |
| 477 | table LogicalBinaryLayer { |
| 478 | base:LayerBase; |
| 479 | descriptor:LogicalBinaryDescriptor; |
| 480 | } |
| 481 | |
Aron Virginas-Tar | 0fe3245 | 2019-02-28 13:12:47 +0000 | [diff] [blame] | 482 | table MinimumLayer { |
| 483 | base:LayerBase; |
| 484 | } |
| 485 | |
Aron Virginas-Tar | 377351e | 2019-02-27 14:42:31 +0000 | [diff] [blame] | 486 | table MaximumLayer { |
| 487 | base:LayerBase; |
| 488 | } |
| 489 | |
Sadik Armagan | 5f45027 | 2019-02-12 14:31:45 +0000 | [diff] [blame] | 490 | table MultiplicationLayer { |
| 491 | base:LayerBase; |
| 492 | } |
| 493 | |
Saoirse Stewart | 3166c3e | 2019-02-18 15:24:53 +0000 | [diff] [blame] | 494 | table Pooling2dLayer { |
| 495 | base:LayerBase; |
| 496 | descriptor:Pooling2dDescriptor; |
| 497 | } |
| 498 | |
Tamas Nyiri | d998a1c | 2021-11-05 14:55:33 +0000 | [diff] [blame] | 499 | table Pooling3dLayer { |
| 500 | base:LayerBase; |
| 501 | descriptor:Pooling3dDescriptor; |
| 502 | } |
| 503 | |
Saoirse Stewart | 3166c3e | 2019-02-18 15:24:53 +0000 | [diff] [blame] | 504 | enum PoolingAlgorithm : byte { |
| 505 | Max = 0, |
| 506 | Average = 1, |
| 507 | L2 = 2 |
| 508 | } |
| 509 | |
| 510 | enum OutputShapeRounding : byte { |
| 511 | Floor = 0, |
| 512 | Ceiling = 1 |
| 513 | } |
| 514 | |
| 515 | enum PaddingMethod : byte { |
| 516 | IgnoreValue = 0, |
| 517 | Exclude = 1 |
| 518 | } |
| 519 | |
| 520 | table Pooling2dDescriptor { |
| 521 | poolType:PoolingAlgorithm; |
| 522 | padLeft:uint; |
| 523 | padRight:uint; |
| 524 | padTop:uint; |
| 525 | padBottom:uint; |
| 526 | poolWidth:uint; |
| 527 | poolHeight:uint; |
| 528 | strideX:uint; |
| 529 | strideY:uint; |
| 530 | outputShapeRounding:OutputShapeRounding; |
| 531 | paddingMethod:PaddingMethod; |
| 532 | dataLayout:DataLayout; |
| 533 | } |
| 534 | |
Tamas Nyiri | d998a1c | 2021-11-05 14:55:33 +0000 | [diff] [blame] | 535 | table Pooling3dDescriptor { |
| 536 | poolType:PoolingAlgorithm; |
| 537 | padLeft:uint; |
| 538 | padRight:uint; |
| 539 | padTop:uint; |
| 540 | padBottom:uint; |
| 541 | padFront:uint; |
| 542 | padBack:uint; |
| 543 | poolWidth:uint; |
| 544 | poolHeight:uint; |
| 545 | poolDepth:uint; |
| 546 | strideX:uint; |
| 547 | strideY:uint; |
| 548 | strideZ:uint; |
| 549 | outputShapeRounding:OutputShapeRounding; |
| 550 | paddingMethod:PaddingMethod; |
| 551 | dataLayout:DataLayout; |
| 552 | } |
| 553 | |
Derek Lamberti | 87acb27 | 2019-03-27 16:51:31 +0000 | [diff] [blame] | 554 | table QuantizeLayer { |
| 555 | base:LayerBase; |
| 556 | } |
| 557 | |
Aron Virginas-Tar | fc413c0 | 2019-02-13 15:41:52 +0000 | [diff] [blame] | 558 | table SoftmaxLayer { |
| 559 | base:LayerBase; |
| 560 | descriptor:SoftmaxDescriptor; |
| 561 | } |
| 562 | |
| 563 | table SoftmaxDescriptor { |
| 564 | beta:float; |
Sadik Armagan | fd0cae3 | 2021-11-08 17:18:31 +0000 | [diff] [blame] | 565 | axis:int = -1; |
Aron Virginas-Tar | fc413c0 | 2019-02-13 15:41:52 +0000 | [diff] [blame] | 566 | } |
| 567 | |
Aron Virginas-Tar | c04125f | 2019-02-19 16:31:08 +0000 | [diff] [blame] | 568 | table DepthwiseConvolution2dLayer { |
| 569 | base:LayerBase; |
| 570 | descriptor:DepthwiseConvolution2dDescriptor; |
| 571 | weights:ConstTensor; |
| 572 | biases:ConstTensor; |
| 573 | } |
| 574 | |
| 575 | table DepthwiseConvolution2dDescriptor { |
| 576 | padLeft:uint; |
| 577 | padRight:uint; |
| 578 | padTop:uint; |
| 579 | padBottom:uint; |
| 580 | strideX:uint; |
| 581 | strideY:uint; |
Matthew Bentham | acad04e | 2019-05-13 10:02:45 +0100 | [diff] [blame] | 582 | dilationX:uint = 1; |
| 583 | dilationY:uint = 1; |
Aron Virginas-Tar | c04125f | 2019-02-19 16:31:08 +0000 | [diff] [blame] | 584 | biasEnabled:bool = false; |
| 585 | dataLayout:DataLayout = NCHW; |
| 586 | } |
| 587 | |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 588 | table OutputLayer { |
| 589 | base:BindableLayerBase; |
| 590 | } |
| 591 | |
Saoirse Stewart | 263829c | 2019-02-19 15:54:14 +0000 | [diff] [blame] | 592 | table ReshapeLayer { |
| 593 | base:LayerBase; |
| 594 | descriptor:ReshapeDescriptor; |
| 595 | } |
| 596 | |
| 597 | table ReshapeDescriptor { |
Keith Davis | 3ae3f97 | 2021-05-21 16:33:48 +0100 | [diff] [blame] | 598 | targetShape:[uint]; |
Saoirse Stewart | 263829c | 2019-02-19 15:54:14 +0000 | [diff] [blame] | 599 | } |
| 600 | |
Nattapat Chaimanowong | 30b0020 | 2019-02-20 17:31:34 +0000 | [diff] [blame] | 601 | table PermuteLayer { |
| 602 | base:LayerBase; |
| 603 | descriptor:PermuteDescriptor; |
| 604 | } |
| 605 | |
| 606 | table PermuteDescriptor { |
| 607 | dimMappings:[uint]; |
| 608 | } |
| 609 | |
Keith Davis | 3ae3f97 | 2021-05-21 16:33:48 +0100 | [diff] [blame] | 610 | table ShapeLayer { |
| 611 | base:LayerBase; |
| 612 | } |
| 613 | |
Nattapat Chaimanowong | 4528699 | 2019-02-26 15:53:02 +0000 | [diff] [blame] | 614 | table SpaceToBatchNdLayer { |
| 615 | base:LayerBase; |
| 616 | descriptor:SpaceToBatchNdDescriptor; |
| 617 | } |
| 618 | |
| 619 | table SpaceToBatchNdDescriptor { |
| 620 | blockShape:[uint]; |
| 621 | padList:[uint]; |
| 622 | dataLayout:DataLayout; |
| 623 | } |
| 624 | |
Aron Virginas-Tar | aa06714 | 2019-06-11 16:01:44 +0100 | [diff] [blame] | 625 | table SpaceToDepthLayer { |
| 626 | base:LayerBase; |
| 627 | descriptor:SpaceToDepthDescriptor; |
| 628 | } |
| 629 | |
| 630 | table SpaceToDepthDescriptor { |
| 631 | blockSize:uint; |
| 632 | dataLayout:DataLayout; |
| 633 | } |
| 634 | |
Conor Kennedy | da1f975 | 2019-03-01 14:37:12 +0000 | [diff] [blame] | 635 | table SubtractionLayer { |
| 636 | base:LayerBase; |
| 637 | } |
| 638 | |
Nattapat Chaimanowong | 6b4ed98 | 2019-02-26 17:24:13 +0000 | [diff] [blame] | 639 | table BatchToSpaceNdLayer { |
| 640 | base:LayerBase; |
| 641 | descriptor:BatchToSpaceNdDescriptor; |
| 642 | } |
| 643 | |
| 644 | table BatchToSpaceNdDescriptor { |
| 645 | blockShape:[uint]; |
| 646 | crops:[uint]; |
| 647 | dataLayout:DataLayout; |
| 648 | } |
| 649 | |
Nina Drozd | 5772878 | 2019-02-27 10:53:27 +0000 | [diff] [blame] | 650 | enum NormalizationAlgorithmChannel : byte { |
| 651 | Across = 0, |
| 652 | Within = 1 |
| 653 | } |
| 654 | |
| 655 | enum NormalizationAlgorithmMethod : byte { |
| 656 | LocalBrightness = 0, |
| 657 | LocalContrast = 1 |
| 658 | } |
| 659 | |
| 660 | table NormalizationLayer { |
| 661 | base:LayerBase; |
| 662 | descriptor:NormalizationDescriptor; |
| 663 | } |
| 664 | |
| 665 | table NormalizationDescriptor { |
| 666 | normChannelType:NormalizationAlgorithmChannel = Across; |
| 667 | normMethodType:NormalizationAlgorithmMethod = LocalBrightness; |
| 668 | normSize:uint; |
| 669 | alpha:float; |
| 670 | beta:float; |
| 671 | k:float; |
| 672 | dataLayout:DataLayout = NCHW; |
| 673 | } |
| 674 | |
Sadik Armagan | ac97c8c | 2019-03-04 17:44:21 +0000 | [diff] [blame] | 675 | table MeanLayer { |
| 676 | base:LayerBase; |
| 677 | descriptor:MeanDescriptor; |
| 678 | } |
| 679 | |
| 680 | table MeanDescriptor { |
| 681 | axis:[uint]; |
| 682 | keepDims:bool = false; |
| 683 | } |
| 684 | |
Nattapat Chaimanowong | ebb0f9c | 2019-03-01 12:14:06 +0000 | [diff] [blame] | 685 | table PadLayer { |
| 686 | base:LayerBase; |
| 687 | descriptor:PadDescriptor; |
| 688 | } |
| 689 | |
Matthew Sloyan | 2e5d0b2 | 2021-10-21 14:05:31 +0100 | [diff] [blame] | 690 | enum PaddingMode : byte { |
| 691 | Constant = 0, |
| 692 | Reflect = 1, |
| 693 | Symmetric = 2 |
| 694 | } |
| 695 | |
Nattapat Chaimanowong | ebb0f9c | 2019-03-01 12:14:06 +0000 | [diff] [blame] | 696 | table PadDescriptor { |
| 697 | padList:[uint]; |
David Monahan | 3475781 | 2019-06-19 11:47:21 +0100 | [diff] [blame] | 698 | padValue:float = 0; |
Matthew Sloyan | 2e5d0b2 | 2021-10-21 14:05:31 +0100 | [diff] [blame] | 699 | paddingMode:PaddingMode = Constant; |
Nattapat Chaimanowong | ebb0f9c | 2019-03-01 12:14:06 +0000 | [diff] [blame] | 700 | } |
| 701 | |
josh minor | 4a3c610 | 2020-01-06 16:40:46 -0600 | [diff] [blame] | 702 | /// @deprecated Use ElementwiseUnaryLayer instead |
Sadik Armagan | 8b42a38 | 2019-03-01 14:24:49 +0000 | [diff] [blame] | 703 | table RsqrtLayer { |
| 704 | base:LayerBase; |
| 705 | } |
| 706 | |
ruoyan01 | 8e7fa23 | 2019-02-28 15:09:07 +0000 | [diff] [blame] | 707 | table BatchNormalizationLayer { |
| 708 | base:LayerBase; |
| 709 | descriptor:BatchNormalizationDescriptor; |
| 710 | mean:ConstTensor; |
| 711 | variance:ConstTensor; |
| 712 | beta:ConstTensor; |
| 713 | gamma:ConstTensor; |
| 714 | } |
| 715 | |
| 716 | table BatchNormalizationDescriptor { |
| 717 | eps:float; |
| 718 | dataLayout:DataLayout; |
| 719 | } |
| 720 | |
Aron Virginas-Tar | e80ebd1 | 2019-10-17 16:11:54 +0100 | [diff] [blame] | 721 | /// @deprecated Use ResizeLayer instead |
Nattapat Chaimanowong | 6522cdc | 2019-03-01 16:14:13 +0000 | [diff] [blame] | 722 | table ResizeBilinearLayer { |
| 723 | base:LayerBase; |
| 724 | descriptor:ResizeBilinearDescriptor; |
| 725 | } |
| 726 | |
| 727 | table ResizeBilinearDescriptor { |
| 728 | targetWidth:uint; |
| 729 | targetHeight:uint; |
| 730 | dataLayout:DataLayout; |
David Monahan | 4a0c9b9 | 2020-05-30 09:48:39 +0100 | [diff] [blame] | 731 | alignCorners:bool; |
| 732 | halfPixelCenters:bool; |
Nattapat Chaimanowong | 6522cdc | 2019-03-01 16:14:13 +0000 | [diff] [blame] | 733 | } |
| 734 | |
Aron Virginas-Tar | 2fda80b | 2019-09-18 13:36:52 +0100 | [diff] [blame] | 735 | table SliceLayer { |
| 736 | base:LayerBase; |
| 737 | descriptor:SliceDescriptor; |
| 738 | } |
| 739 | |
| 740 | table SliceDescriptor { |
| 741 | begin:[uint]; |
| 742 | size:[uint]; |
| 743 | } |
| 744 | |
Nattapat Chaimanowong | b348521 | 2019-03-04 12:35:39 +0000 | [diff] [blame] | 745 | table StridedSliceLayer { |
| 746 | base:LayerBase; |
| 747 | descriptor:StridedSliceDescriptor; |
| 748 | } |
| 749 | |
| 750 | table StridedSliceDescriptor { |
| 751 | begin:[int]; |
| 752 | end:[int]; |
| 753 | stride:[int]; |
| 754 | beginMask:int; |
| 755 | endMask:int; |
| 756 | shrinkAxisMask:int; |
| 757 | ellipsisMask:int; |
| 758 | newAxisMask:int; |
| 759 | dataLayout:DataLayout; |
| 760 | } |
| 761 | |
Jim Flynn | e242f2d | 2019-05-22 14:24:13 +0100 | [diff] [blame] | 762 | table ConcatLayer { |
| 763 | base:LayerBase; |
| 764 | descriptor:OriginsDescriptor; |
| 765 | } |
| 766 | |
Aron Virginas-Tar | e80ebd1 | 2019-10-17 16:11:54 +0100 | [diff] [blame] | 767 | /// @deprecated Use ConcatLayer instead |
Jim Flynn | ac25a1b | 2019-02-28 10:40:49 +0000 | [diff] [blame] | 768 | table MergerLayer { |
| 769 | base:LayerBase; |
| 770 | descriptor:OriginsDescriptor; |
| 771 | } |
| 772 | |
| 773 | table UintVector { |
| 774 | data:[uint]; |
| 775 | } |
| 776 | |
| 777 | table OriginsDescriptor { |
| 778 | concatAxis:uint; |
| 779 | numViews:uint; |
| 780 | numDimensions:uint; |
| 781 | viewOrigins:[UintVector]; |
| 782 | } |
| 783 | |
Jim Flynn | 18ce338 | 2019-03-08 11:08:30 +0000 | [diff] [blame] | 784 | table ViewsDescriptor { |
| 785 | origins:OriginsDescriptor; |
| 786 | viewSizes:[UintVector]; |
Mike Kelly | fca5916 | 2023-08-08 12:00:28 +0100 | [diff] [blame] | 787 | hasAxis:bool; |
| 788 | axis:int; |
Jim Flynn | 18ce338 | 2019-03-08 11:08:30 +0000 | [diff] [blame] | 789 | } |
| 790 | |
| 791 | table SplitterLayer { |
| 792 | base:LayerBase; |
| 793 | descriptor:ViewsDescriptor; |
| 794 | } |
| 795 | |
Nattapat Chaimanowong | 3e14a9d | 2019-03-18 12:37:06 +0000 | [diff] [blame] | 796 | table DetectionPostProcessLayer { |
| 797 | base:LayerBase; |
| 798 | descriptor:DetectionPostProcessDescriptor; |
| 799 | anchors:ConstTensor; |
| 800 | } |
| 801 | |
| 802 | table DetectionPostProcessDescriptor { |
| 803 | maxDetections:uint; |
| 804 | maxClassesPerDetection:uint; |
| 805 | detectionsPerClass:uint; |
| 806 | nmsScoreThreshold:float; |
| 807 | nmsIouThreshold:float; |
| 808 | numClasses:uint; |
| 809 | useRegularNms:bool; |
| 810 | scaleX:float; |
| 811 | scaleY:float; |
| 812 | scaleW:float; |
| 813 | scaleH:float; |
| 814 | } |
| 815 | |
Jim Flynn | 11af375 | 2019-03-19 17:22:29 +0000 | [diff] [blame] | 816 | table LstmInputParams { |
| 817 | inputToForgetWeights:ConstTensor; |
| 818 | inputToCellWeights:ConstTensor; |
| 819 | inputToOutputWeights:ConstTensor; |
| 820 | recurrentToForgetWeights:ConstTensor; |
| 821 | recurrentToCellWeights:ConstTensor; |
| 822 | recurrentToOutputWeights:ConstTensor; |
| 823 | forgetGateBias:ConstTensor; |
| 824 | cellBias:ConstTensor; |
| 825 | outputGateBias:ConstTensor; |
| 826 | |
| 827 | inputToInputWeights:ConstTensor; |
| 828 | recurrentToInputWeights:ConstTensor; |
| 829 | cellToInputWeights:ConstTensor; |
| 830 | inputGateBias:ConstTensor; |
| 831 | |
| 832 | projectionWeights:ConstTensor; |
| 833 | projectionBias:ConstTensor; |
| 834 | |
| 835 | cellToForgetWeights:ConstTensor; |
| 836 | cellToOutputWeights:ConstTensor; |
Jan Eilers | f8c6297 | 2019-07-17 11:07:49 +0100 | [diff] [blame] | 837 | |
| 838 | inputLayerNormWeights:ConstTensor; |
| 839 | forgetLayerNormWeights:ConstTensor; |
| 840 | cellLayerNormWeights:ConstTensor; |
| 841 | outputLayerNormWeights:ConstTensor; |
Jim Flynn | 11af375 | 2019-03-19 17:22:29 +0000 | [diff] [blame] | 842 | } |
| 843 | |
James Conroy | 8d33318 | 2020-05-13 10:27:58 +0100 | [diff] [blame] | 844 | table LstmDescriptor { |
| 845 | activationFunc:uint; |
| 846 | clippingThresCell:float; |
| 847 | clippingThresProj:float; |
| 848 | cifgEnabled:bool = true; |
| 849 | peepholeEnabled:bool = false; |
| 850 | projectionEnabled:bool = false; |
| 851 | layerNormEnabled:bool = false; |
| 852 | } |
| 853 | |
| 854 | table LstmLayer { |
| 855 | base:LayerBase; |
| 856 | descriptor:LstmDescriptor; |
| 857 | inputParams:LstmInputParams; |
| 858 | } |
| 859 | |
| 860 | table QLstmInputParams { |
| 861 | // Mandatory |
| 862 | inputToForgetWeights:ConstTensor; |
| 863 | inputToCellWeights:ConstTensor; |
| 864 | inputToOutputWeights:ConstTensor; |
| 865 | |
| 866 | recurrentToForgetWeights:ConstTensor; |
| 867 | recurrentToCellWeights:ConstTensor; |
| 868 | recurrentToOutputWeights:ConstTensor; |
| 869 | |
| 870 | forgetGateBias:ConstTensor; |
| 871 | cellBias:ConstTensor; |
| 872 | outputGateBias:ConstTensor; |
| 873 | |
| 874 | // CIFG |
| 875 | inputToInputWeights:ConstTensor; |
| 876 | recurrentToInputWeights:ConstTensor; |
| 877 | inputGateBias:ConstTensor; |
| 878 | |
| 879 | // Projection |
| 880 | projectionWeights:ConstTensor; |
| 881 | projectionBias:ConstTensor; |
| 882 | |
| 883 | // Peephole |
| 884 | cellToInputWeights:ConstTensor; |
| 885 | cellToForgetWeights:ConstTensor; |
| 886 | cellToOutputWeights:ConstTensor; |
| 887 | |
| 888 | // Layer norm |
| 889 | inputLayerNormWeights:ConstTensor; |
| 890 | forgetLayerNormWeights:ConstTensor; |
| 891 | cellLayerNormWeights:ConstTensor; |
| 892 | outputLayerNormWeights:ConstTensor; |
| 893 | } |
| 894 | |
| 895 | table QLstmDescriptor { |
| 896 | cifgEnabled:bool = true; |
| 897 | peepholeEnabled:bool = false; |
| 898 | projectionEnabled:bool = false; |
| 899 | layerNormEnabled:bool = false; |
| 900 | |
| 901 | cellClip:float; |
| 902 | projectionClip:float; |
| 903 | |
| 904 | inputIntermediateScale:float; |
| 905 | forgetIntermediateScale:float; |
| 906 | cellIntermediateScale:float; |
| 907 | outputIntermediateScale:float; |
| 908 | |
| 909 | hiddenStateZeroPoint:int; |
| 910 | hiddenStateScale:float; |
| 911 | } |
| 912 | |
| 913 | table QLstmLayer { |
| 914 | base:LayerBase; |
| 915 | descriptor:QLstmDescriptor; |
| 916 | inputParams:QLstmInputParams; |
| 917 | } |
| 918 | |
Jan Eilers | 5b01a89 | 2019-07-23 09:47:43 +0100 | [diff] [blame] | 919 | table QuantizedLstmInputParams { |
| 920 | inputToInputWeights:ConstTensor; |
| 921 | inputToForgetWeights:ConstTensor; |
| 922 | inputToCellWeights:ConstTensor; |
| 923 | inputToOutputWeights:ConstTensor; |
| 924 | |
| 925 | recurrentToInputWeights:ConstTensor; |
| 926 | recurrentToForgetWeights:ConstTensor; |
| 927 | recurrentToCellWeights:ConstTensor; |
| 928 | recurrentToOutputWeights:ConstTensor; |
| 929 | |
| 930 | inputGateBias:ConstTensor; |
| 931 | forgetGateBias:ConstTensor; |
| 932 | cellBias:ConstTensor; |
| 933 | outputGateBias:ConstTensor; |
| 934 | } |
| 935 | |
Jan Eilers | 5b01a89 | 2019-07-23 09:47:43 +0100 | [diff] [blame] | 936 | table QuantizedLstmLayer { |
| 937 | base:LayerBase; |
| 938 | inputParams:QuantizedLstmInputParams; |
| 939 | } |
| 940 | |
Nattapat Chaimanowong | e4294fd | 2019-03-28 09:56:53 +0000 | [diff] [blame] | 941 | table DequantizeLayer { |
| 942 | base:LayerBase; |
| 943 | } |
| 944 | |
Nattapat Chaimanowong | 1f88630 | 2019-04-05 13:37:19 +0100 | [diff] [blame] | 945 | table MergeLayer { |
| 946 | base:LayerBase; |
| 947 | } |
| 948 | |
Sadik Armagan | eff363d | 2019-04-05 15:25:46 +0100 | [diff] [blame] | 949 | table SwitchLayer { |
| 950 | base:LayerBase; |
| 951 | } |
| 952 | |
Ellen Norris-Thompson | 5198247 | 2019-06-19 11:46:21 +0100 | [diff] [blame] | 953 | table PreluLayer { |
| 954 | base:LayerBase; |
| 955 | } |
| 956 | |
Aron Virginas-Tar | cb54930 | 2019-06-21 13:53:38 +0100 | [diff] [blame] | 957 | table TransposeConvolution2dLayer { |
| 958 | base:LayerBase; |
| 959 | descriptor:TransposeConvolution2dDescriptor; |
| 960 | weights:ConstTensor; |
| 961 | biases:ConstTensor; |
| 962 | } |
| 963 | |
| 964 | table TransposeConvolution2dDescriptor { |
| 965 | padLeft:uint; |
| 966 | padRight:uint; |
| 967 | padTop:uint; |
| 968 | padBottom:uint; |
| 969 | strideX:uint; |
| 970 | strideY:uint; |
| 971 | biasEnabled:bool = false; |
| 972 | dataLayout:DataLayout = NCHW; |
| 973 | } |
| 974 | |
Mike Kelly | c9ea45a | 2020-02-28 18:11:58 +0000 | [diff] [blame] | 975 | table TransposeLayer { |
| 976 | base:LayerBase; |
| 977 | descriptor:TransposeDescriptor; |
| 978 | } |
| 979 | |
| 980 | table TransposeDescriptor { |
| 981 | dimMappings:[uint]; |
| 982 | } |
| 983 | |
FinnWilliamsArm | 6fb339a | 2019-06-28 15:07:10 +0100 | [diff] [blame] | 984 | table ResizeLayer { |
| 985 | base:LayerBase; |
| 986 | descriptor:ResizeDescriptor; |
| 987 | } |
| 988 | |
| 989 | table ResizeDescriptor { |
| 990 | targetHeight:uint; |
| 991 | targetWidth:uint; |
| 992 | method:ResizeMethod = NearestNeighbor; |
| 993 | dataLayout:DataLayout; |
David Monahan | 4a0c9b9 | 2020-05-30 09:48:39 +0100 | [diff] [blame] | 994 | alignCorners:bool; |
| 995 | halfPixelCenters:bool; |
FinnWilliamsArm | 6fb339a | 2019-06-28 15:07:10 +0100 | [diff] [blame] | 996 | } |
| 997 | |
Tracy Narine | 944fb50 | 2023-07-04 15:08:57 +0100 | [diff] [blame] | 998 | table ReverseV2Layer { |
| 999 | base:LayerBase; |
Tracy Narine | 944fb50 | 2023-07-04 15:08:57 +0100 | [diff] [blame] | 1000 | } |
| 1001 | |
Matthew Jackson | b5433ee | 2019-07-11 15:54:20 +0100 | [diff] [blame] | 1002 | table StackLayer { |
| 1003 | base:LayerBase; |
| 1004 | descriptor:StackDescriptor; |
| 1005 | } |
| 1006 | |
| 1007 | table StackDescriptor { |
| 1008 | axis:uint; |
| 1009 | numInputs:uint; |
| 1010 | inputShape:[uint]; |
| 1011 | } |
| 1012 | |
Aron Virginas-Tar | 85121a2 | 2019-10-23 10:41:35 +0100 | [diff] [blame] | 1013 | table StandInDescriptor { |
| 1014 | numInputs:uint; |
| 1015 | numOutputs:uint; |
| 1016 | } |
| 1017 | |
| 1018 | table StandInLayer { |
| 1019 | base:LayerBase; |
| 1020 | descriptor:StandInDescriptor; |
| 1021 | } |
| 1022 | |
Finn Williams | 2605b23 | 2020-06-10 15:53:46 +0100 | [diff] [blame] | 1023 | table RankLayer { |
| 1024 | base:LayerBase; |
| 1025 | } |
| 1026 | |
Sadik Armagan | 0c3ea5b | 2021-02-03 09:29:30 +0000 | [diff] [blame] | 1027 | table ReduceLayer { |
| 1028 | base:LayerBase; |
| 1029 | descriptor:ReduceDescriptor; |
| 1030 | } |
| 1031 | |
| 1032 | table ReduceDescriptor { |
Sadik Armagan | 0c3ea5b | 2021-02-03 09:29:30 +0000 | [diff] [blame] | 1033 | keepDims:bool = false; |
| 1034 | axis:[uint]; |
| 1035 | reduceOperation:ReduceOperation = Sum; |
| 1036 | } |
| 1037 | |
Narumol Prangnawarat | a0162e1 | 2021-07-23 14:47:49 +0100 | [diff] [blame] | 1038 | table UnidirectionalSequenceLstmDescriptor { |
| 1039 | activationFunc:uint; |
| 1040 | clippingThresCell:float; |
| 1041 | clippingThresProj:float; |
| 1042 | cifgEnabled:bool = true; |
| 1043 | peepholeEnabled:bool = false; |
| 1044 | projectionEnabled:bool = false; |
| 1045 | layerNormEnabled:bool = false; |
| 1046 | timeMajor:bool = false; |
| 1047 | } |
| 1048 | |
| 1049 | table UnidirectionalSequenceLstmLayer { |
| 1050 | base:LayerBase; |
| 1051 | descriptor:UnidirectionalSequenceLstmDescriptor; |
| 1052 | inputParams:LstmInputParams; |
| 1053 | } |
| 1054 | |
Samuel Yap | a04f4a1 | 2022-08-19 11:14:38 +0100 | [diff] [blame] | 1055 | table BatchMatMulDescriptor { |
| 1056 | transposeX:bool = false; |
| 1057 | transposeY:bool = false; |
| 1058 | adjointX:bool = false; |
| 1059 | adjointY:bool = false; |
| 1060 | dataLayoutX:DataLayout = NCHW; |
| 1061 | dataLayoutY:DataLayout = NCHW; |
| 1062 | } |
| 1063 | |
| 1064 | table BatchMatMulLayer { |
| 1065 | base:LayerBase; |
| 1066 | descriptor:BatchMatMulDescriptor; |
| 1067 | } |
| 1068 | |
David Monahan | 616b22f | 2023-07-25 12:08:10 +0100 | [diff] [blame] | 1069 | table TileDescriptor { |
| 1070 | m_Multiples:[uint]; |
| 1071 | } |
| 1072 | |
| 1073 | table TileLayer { |
| 1074 | base:LayerBase; |
| 1075 | descriptor:TileDescriptor; |
| 1076 | } |
| 1077 | |
Kevin May | e3cc716 | 2024-02-26 09:12:23 +0000 | [diff] [blame^] | 1078 | table ScatterNdDescriptor { |
| 1079 | m_Function:ScatterNdFunction = Update; |
| 1080 | m_InputEnabled:bool = true; |
| 1081 | m_Axis:int = 0; |
| 1082 | m_AxisEnabled:bool = false; |
| 1083 | } |
| 1084 | |
| 1085 | table ScatterNdLayer { |
| 1086 | base:LayerBase; |
| 1087 | descriptor:ScatterNdDescriptor; |
| 1088 | } |
| 1089 | |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 1090 | union Layer { |
Mike Kelly | af48401 | 2019-02-20 16:53:11 +0000 | [diff] [blame] | 1091 | ActivationLayer, |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 1092 | AdditionLayer, |
Nattapat Chaimanowong | 6b4ed98 | 2019-02-26 17:24:13 +0000 | [diff] [blame] | 1093 | BatchToSpaceNdLayer, |
ruoyan01 | 8e7fa23 | 2019-02-28 15:09:07 +0000 | [diff] [blame] | 1094 | BatchNormalizationLayer, |
Conor Kennedy | 7627788 | 2019-02-26 08:29:54 +0000 | [diff] [blame] | 1095 | ConstantLayer, |
Mike Kelly | a0766c3 | 2019-02-19 17:22:07 +0000 | [diff] [blame] | 1096 | Convolution2dLayer, |
Aron Virginas-Tar | c04125f | 2019-02-19 16:31:08 +0000 | [diff] [blame] | 1097 | DepthwiseConvolution2dLayer, |
Sadik Armagan | dbb0c0c | 2019-02-21 09:01:41 +0000 | [diff] [blame] | 1098 | FullyConnectedLayer, |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 1099 | InputLayer, |
Sadik Armagan | 5f45027 | 2019-02-12 14:31:45 +0000 | [diff] [blame] | 1100 | MultiplicationLayer, |
Aron Virginas-Tar | fc413c0 | 2019-02-13 15:41:52 +0000 | [diff] [blame] | 1101 | OutputLayer, |
Nattapat Chaimanowong | 30b0020 | 2019-02-20 17:31:34 +0000 | [diff] [blame] | 1102 | PermuteLayer, |
Saoirse Stewart | 3166c3e | 2019-02-18 15:24:53 +0000 | [diff] [blame] | 1103 | Pooling2dLayer, |
Saoirse Stewart | 263829c | 2019-02-19 15:54:14 +0000 | [diff] [blame] | 1104 | ReshapeLayer, |
Nattapat Chaimanowong | 4528699 | 2019-02-26 15:53:02 +0000 | [diff] [blame] | 1105 | SoftmaxLayer, |
Éanna Ó Catháin | 5888589 | 2019-02-27 16:16:39 +0000 | [diff] [blame] | 1106 | SpaceToBatchNdLayer, |
Aron Virginas-Tar | 0fe3245 | 2019-02-28 13:12:47 +0000 | [diff] [blame] | 1107 | DivisionLayer, |
Nattapat Chaimanowong | 235cea5 | 2019-02-28 16:27:30 +0000 | [diff] [blame] | 1108 | MinimumLayer, |
Aron Virginas-Tar | 377351e | 2019-02-27 14:42:31 +0000 | [diff] [blame] | 1109 | EqualLayer, |
Nina Drozd | 5772878 | 2019-02-27 10:53:27 +0000 | [diff] [blame] | 1110 | MaximumLayer, |
Nattapat Chaimanowong | ebb0f9c | 2019-03-01 12:14:06 +0000 | [diff] [blame] | 1111 | NormalizationLayer, |
Sadik Armagan | 8b42a38 | 2019-03-01 14:24:49 +0000 | [diff] [blame] | 1112 | PadLayer, |
Finn Williams | dd2ba7e | 2019-03-01 11:51:52 +0000 | [diff] [blame] | 1113 | RsqrtLayer, |
Conor Kennedy | 79ffdf5 | 2019-03-01 14:24:54 +0000 | [diff] [blame] | 1114 | FloorLayer, |
Nattapat Chaimanowong | 6522cdc | 2019-03-01 16:14:13 +0000 | [diff] [blame] | 1115 | GreaterLayer, |
Conor Kennedy | da1f975 | 2019-03-01 14:37:12 +0000 | [diff] [blame] | 1116 | ResizeBilinearLayer, |
Nattapat Chaimanowong | b348521 | 2019-03-04 12:35:39 +0000 | [diff] [blame] | 1117 | SubtractionLayer, |
Saoirse Stewart | a1ed73a | 2019-03-04 13:40:12 +0000 | [diff] [blame] | 1118 | StridedSliceLayer, |
Sadik Armagan | ac97c8c | 2019-03-04 17:44:21 +0000 | [diff] [blame] | 1119 | GatherLayer, |
Jim Flynn | ac25a1b | 2019-02-28 10:40:49 +0000 | [diff] [blame] | 1120 | MeanLayer, |
Narumol Prangnawarat | 495701f | 2019-03-07 17:31:34 +0000 | [diff] [blame] | 1121 | MergerLayer, |
Jim Flynn | 18ce338 | 2019-03-08 11:08:30 +0000 | [diff] [blame] | 1122 | L2NormalizationLayer, |
Nattapat Chaimanowong | 3e14a9d | 2019-03-18 12:37:06 +0000 | [diff] [blame] | 1123 | SplitterLayer, |
Jim Flynn | 11af375 | 2019-03-19 17:22:29 +0000 | [diff] [blame] | 1124 | DetectionPostProcessLayer, |
Derek Lamberti | 87acb27 | 2019-03-27 16:51:31 +0000 | [diff] [blame] | 1125 | LstmLayer, |
Jan Eilers | 5b01a89 | 2019-07-23 09:47:43 +0100 | [diff] [blame] | 1126 | QuantizedLstmLayer, |
Nattapat Chaimanowong | e4294fd | 2019-03-28 09:56:53 +0000 | [diff] [blame] | 1127 | QuantizeLayer, |
Nattapat Chaimanowong | 1f88630 | 2019-04-05 13:37:19 +0100 | [diff] [blame] | 1128 | DequantizeLayer, |
Sadik Armagan | eff363d | 2019-04-05 15:25:46 +0100 | [diff] [blame] | 1129 | MergeLayer, |
Jim Flynn | e242f2d | 2019-05-22 14:24:13 +0100 | [diff] [blame] | 1130 | SwitchLayer, |
Aron Virginas-Tar | aa06714 | 2019-06-11 16:01:44 +0100 | [diff] [blame] | 1131 | ConcatLayer, |
Ellen Norris-Thompson | 5198247 | 2019-06-19 11:46:21 +0100 | [diff] [blame] | 1132 | SpaceToDepthLayer, |
Aron Virginas-Tar | cb54930 | 2019-06-21 13:53:38 +0100 | [diff] [blame] | 1133 | PreluLayer, |
FinnWilliamsArm | 6fb339a | 2019-06-28 15:07:10 +0100 | [diff] [blame] | 1134 | TransposeConvolution2dLayer, |
Matthew Jackson | b5433ee | 2019-07-11 15:54:20 +0100 | [diff] [blame] | 1135 | ResizeLayer, |
FinnWilliamsArm | 4ffcc8f | 2019-09-05 14:34:20 +0100 | [diff] [blame] | 1136 | StackLayer, |
Narumol Prangnawarat | 0cfcf23 | 2019-09-09 17:16:24 +0100 | [diff] [blame] | 1137 | AbsLayer, |
Aron Virginas-Tar | 2fda80b | 2019-09-18 13:36:52 +0100 | [diff] [blame] | 1138 | ArgMinMaxLayer, |
Aron Virginas-Tar | da9d2d3 | 2019-09-20 10:42:02 +0100 | [diff] [blame] | 1139 | SliceLayer, |
Aron Virginas-Tar | 781ced9 | 2019-10-03 11:15:39 +0100 | [diff] [blame] | 1140 | DepthToSpaceLayer, |
Sadik Armagan | 2625785 | 2019-10-14 13:00:47 +0100 | [diff] [blame] | 1141 | InstanceNormalizationLayer, |
Aron Virginas-Tar | e80ebd1 | 2019-10-17 16:11:54 +0100 | [diff] [blame] | 1142 | LogSoftmaxLayer, |
Aron Virginas-Tar | 85121a2 | 2019-10-23 10:41:35 +0100 | [diff] [blame] | 1143 | ComparisonLayer, |
josh minor | 4a3c610 | 2020-01-06 16:40:46 -0600 | [diff] [blame] | 1144 | StandInLayer, |
Mike Kelly | c9ea45a | 2020-02-28 18:11:58 +0000 | [diff] [blame] | 1145 | ElementwiseUnaryLayer, |
James Conroy | 8d33318 | 2020-05-13 10:27:58 +0100 | [diff] [blame] | 1146 | TransposeLayer, |
Keith Davis | 300ad56 | 2020-06-04 16:34:23 +0100 | [diff] [blame] | 1147 | QLstmLayer, |
Finn Williams | 2605b23 | 2020-06-10 15:53:46 +0100 | [diff] [blame] | 1148 | FillLayer, |
James Conroy | aba90cd | 2020-11-06 16:28:18 +0000 | [diff] [blame] | 1149 | RankLayer, |
Sadik Armagan | 0c3ea5b | 2021-02-03 09:29:30 +0000 | [diff] [blame] | 1150 | LogicalBinaryLayer, |
mathad01 | b392e98 | 2021-04-07 12:07:30 +0100 | [diff] [blame] | 1151 | ReduceLayer, |
Keith Davis | 3ae3f97 | 2021-05-21 16:33:48 +0100 | [diff] [blame] | 1152 | CastLayer, |
Narumol Prangnawarat | a0162e1 | 2021-07-23 14:47:49 +0100 | [diff] [blame] | 1153 | ShapeLayer, |
| 1154 | UnidirectionalSequenceLstmLayer, |
Simon Obute | 51f6777 | 2021-09-03 15:50:13 +0100 | [diff] [blame] | 1155 | ChannelShuffleLayer, |
Matthew Sloyan | b63a311 | 2021-09-08 13:05:51 +0100 | [diff] [blame] | 1156 | Convolution3dLayer, |
Tamas Nyiri | d998a1c | 2021-11-05 14:55:33 +0000 | [diff] [blame] | 1157 | Pooling3dLayer, |
Teresa Charlin | 6966bfa | 2022-04-25 17:14:50 +0100 | [diff] [blame] | 1158 | GatherNdLayer, |
Samuel Yap | a04f4a1 | 2022-08-19 11:14:38 +0100 | [diff] [blame] | 1159 | BatchMatMulLayer, |
Mike Kelly | 3ec3077 | 2023-03-08 13:47:17 +0000 | [diff] [blame] | 1160 | ElementwiseBinaryLayer, |
Tracy Narine | 944fb50 | 2023-07-04 15:08:57 +0100 | [diff] [blame] | 1161 | ReverseV2Layer, |
David Monahan | 616b22f | 2023-07-25 12:08:10 +0100 | [diff] [blame] | 1162 | TileLayer, |
Kevin May | e3cc716 | 2024-02-26 09:12:23 +0000 | [diff] [blame^] | 1163 | ScatterNdLayer, |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 1164 | } |
| 1165 | |
Saoirse Stewart | 49dbe0e | 2019-02-05 17:27:06 +0000 | [diff] [blame] | 1166 | table AnyLayer { |
| 1167 | layer:Layer; |
| 1168 | } |
| 1169 | |
Tee Jung | aa920c5 | 2019-11-05 10:48:25 +0000 | [diff] [blame] | 1170 | table FeatureCompatibilityVersions { |
| 1171 | bindingIdsScheme:uint = 0; |
Jan Eilers | 53ef795 | 2021-06-02 12:01:25 +0100 | [diff] [blame] | 1172 | weightsLayoutScheme:uint = 0; |
Matthew Sloyan | 81beae3 | 2021-07-13 19:46:11 +0100 | [diff] [blame] | 1173 | constantTensorsAsInputs:uint = 0; |
Tee Jung | aa920c5 | 2019-11-05 10:48:25 +0000 | [diff] [blame] | 1174 | } |
| 1175 | |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 1176 | // Root type for serialized data is the graph of the network |
| 1177 | table SerializedGraph { |
Saoirse Stewart | 49dbe0e | 2019-02-05 17:27:06 +0000 | [diff] [blame] | 1178 | layers:[AnyLayer]; |
Tee Jung | aa920c5 | 2019-11-05 10:48:25 +0000 | [diff] [blame] | 1179 | inputIds:[int]; |
| 1180 | outputIds:[int]; |
| 1181 | featureVersions:FeatureCompatibilityVersions; |
Nattapat Chaimanowong | 969eea3 | 2019-01-30 13:33:11 +0000 | [diff] [blame] | 1182 | } |
| 1183 | |
Sadik Armagan | 0c3ea5b | 2021-02-03 09:29:30 +0000 | [diff] [blame] | 1184 | root_type SerializedGraph; |