armnn-metadata.json 15.1 KB
Newer Older
P
Peter Pan 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476
[
  {
    "name": "InputLayer",
    "schema": {
      "bindings": [
        { "name": "layerBindingId", "type": "int", "src": "layerBindingId" }
      ]
    }
  },
  {
    "name": "OutputLayer",
    "schema": {
      "category": "Tensor",
      "bindings": [
        { "name": "layerBindingId", "type": "int", "src": "layerBindingId" }
      ]
    }
  },
  {
    "name": "Pooling2dLayer",
    "schema": {
      "category": "Pool",
      "attributes": [
        { "name": "type", "type": "string", "src": "poolType", "src_type": "PoolingAlgorithm"},
        { "name": "padding", "type": "string", "src": ["padTop", "padRight", "padBottom", "padLeft"] },
        { "name": "width", "type": "string", "src": "poolWidth" },
        { "name": "height", "type": "string", "src": "poolHeight" },
        { "name": "stride", "type": "string", "src": ["strideX", "strideY"] },
        { "name": "outputShapeRounding", "type": "string", "src": "outputShapeRounding", "src_type": "OutputShapeRounding"},
        { "name": "paddingMethod", "type": "string", "src": "paddingMethod", "src_type": "PaddingMethod"},
        { "name": "dataLayout", "type": "string", "src": "dataLayout", "src_type": "DataLayout" }
      ]
    }
  },
  {
    "name": "ReshapeLayer",
    "schema": {
      "category": "Shape",
      "attributes": [
        { "name": "targetShape", "type": "string", "src": "targetShape" }
      ]
    }
  },
  {
    "name": "SoftmaxLayer",
    "schema": {
      "category": "Activation",
      "attributes": [
        { "name": "beta", "type": "float", "src": "beta" }
      ]
    }
  },
  {
    "name": "Convolution2dLayer",
    "schema": {
      "category": "Layer",
      "inputs": [
        
        { "name": "weight", "src": "weights" },
        { "name": "bias", "src": "biases" }
      ],
      "attributes": [
        { "name": "padding", "type": "string", "src": ["padTop", "padRight", "padBottom", "padLeft"] },
        { "name": "stride", "type": "string", "src": ["strideX", "strideY"] },
        { "name": "dilation", "type": "string", "src": ["dilationX", "dilationY"] },
        { "name": "dataLayout", "type": "string", "src": "dataLayout", "src_type": "DataLayout" }
      ]
    }
  },
  {
    "name": "DepthwiseConvolution2dLayer",
    "schema": {
      "category": "Layer",
      "inputs": [
        { "name": "weight", "src": "weights" },
        { "name": "bias", "src": "biases" }
      ],
      "attributes": [
        { "name": "padding", "type": "string", "src": ["padTop", "padRight", "padBottom", "padLeft"] },
        { "name": "stride", "type": "string", "src": ["strideX", "strideY"] },
        { "name": "dilation", "type": "string", "src": ["dilationX", "dilationY"] },
        { "name": "dataLayout", "type": "string", "src": "dataLayout", "src_type": "DataLayout" }
      ]
    }
  },
  {
    "name": "ActivationLayer",
    "schema": {
      "category": "Activation",
      "attributes": [
        { "name": "function", "type": "string", "src": "activationFunction", "src_type": "ActivationFunction" },
        { "name": "a", "type": "float", "src": "a" },
        { "name": "b", "type": "float", "src": "b" }
      ]
    }
  },
  {
    "name": "PermuteLayer",
    "schema": {
      "category": "Shape",
      "attributes": [
        { "name": "dimMappings", "type": "string", "src": "dimMappings" }
      ]
    }
  },
  {
    "name": "FullyConnectedLayer",
    "schema": {
      "category": "Layer",
      "inputs": [
        { "name": "weights", "src": "weights" },
        { "name": "biases", "src": "biases" }
      ],
      "attributes": [
        { "name": "transposeWeightsMatrix", "type": "bool", "src": "transposeWeightsMatrix" }
      ]
    }
  },
  {
    "name": "ConstantLayer",
    "schema": {
      "category": "Constant",
      "inputs": [
        { "name": "input", "src": "input" }
      ]
    }
  },
  {
    "name": "SpaceToBatchNdLayer",
    "schema": {
      "category": "Layer",
      "attributes": [
        { "name": "blockShape", "type": "string", "src": "blockShape" },
        { "name": "padList", "type": "string", "src": "padList" },
        { "name": "dataLayout", "type": "string", "src": "dataLayout", "src_type": "DataLayout" }
      ]
    }
  },
  {
    "name": "BatchToSpaceNdLayer",
    "schema": {
      "category": "Layer",
      "attributes": [
        { "name": "blockShape", "type": "string", "src": "blockShape" },
        { "name": "crops", "type": "string", "src": "crops" },
        { "name": "dataLayout", "type": "string", "src": "dataLayout", "src_type": "DataLayout" }
      ]
    }
  },
  {
    "name": "DivisionLayer",
    "schema": {
      "category": "Layer"
    }
  },
  {
    "name": "MinimumLayer",
    "schema": {
      "category": "Layer"
    }
  },
  {
    "name": "EqualLayer",
    "schema": {
      "category": "Layer"
    }
  },
  {
    "name": "MaximumLayer",
    "schema": {
      "category": "Layer"
    }
  },
  {
    "name": "NormalizationLayer",
    "schema": {
      "category": "Normalization",
      "attributes": [
        { "name": "normChannelType", "type": "string", "src": "normChannelType", "src_type": "NormalizationAlgorithmChannel" },
        { "name": "normMethodType", "type": "string", "src": "normMethodType", "src_type": "NormalizationAlgorithmMethod" },
        { "name": "normSize", "type": "uint", "src": "normSize" },
        { "name": "alpha", "type": "float", "src": "alpha" },
        { "name": "beta", "type": "float", "src": "beta" },
        { "name": "k", "type": "float", "src": "k" },
        { "name": "dataLayout", "type": "string", "src": "dataLayout", "src_type": "DataLayout" }
      ]
    }
  },
  {
    "name": "PadLayer",
    "schema": {
      "category": "Layer",
      "attributes": [
        { "name": "padList", "type": "uint", "src": "padList" },
        { "name": "padValue", "type": "float", "src": "padValue" }
      ]
    }
  },
  {
    "name": "RsqrtLayer",
    "schema": {
      "category": "Layer"
    }
  },
  {
    "name": "FloorLayer",
    "schema": {
      "category": "Layer"
    }
  },
  {
    "name": "BatchNormalizationLayer",
    "schema": {
      "category": "Normalization",
      "inputs": [
        { "name": "mean", "src": "mean" },
        { "name": "variance", "src": "variance" },
        { "name": "beta", "src": "beta" },
        { "name": "gamma", "src": "gamma" }
      ],
      "attributes": [
        { "name": "eps", "type": "float", "src": "eps" },
        { "name": "dataLayout", "type": "string", "src": "dataLayout", "src_type": "DataLayout" }
      ]
    }
  },
  {
    "name": "GreaterLayer",
    "schema": {
      "category": "Layer",
      "attributes": [
      ]
    }
  },
  {
    "name": "ResizeBilinearLayer",
    "schema": {
      "category": "Layer",
      "attributes": [
        { "name": "targetWidth", "type": "uint", "src": "targetWidth" },
        { "name": "targetHeight", "type": "uint", "src": "targetHeight" },
        { "name": "dataLayout", "type": "string", "src": "dataLayout", "src_type": "DataLayout" }
      ]
    }
  },
  {
    "name": "SubtractionLayer",
    "schema": {
    }
  },
  {
    "name": "StridedSliceLayer",
    "schema": {
      "category": "Tensor",
      "attributes": [
        { "name": "begin", "type": "int", "src": "begin" },
        { "name": "end", "type": "int", "src": "end" },
        { "name": "stride", "type": "int", "src": "stride" },
        { "name": "beginMask", "type": "int", "src": "beginMask" },
        { "name": "endMask", "type": "int", "src": "endMask" },
        { "name": "shrinkAxisMask", "type": "int", "src": "shrinkAxisMask" },
        { "name": "ellipsisMask", "type": "int", "src": "ellipsisMask" },
        { "name": "newAxisMask", "type": "int", "src": "newAxisMask" },
        { "name": "dataLayout", "type": "string", "src": "dataLayout", "src_type": "DataLayout" }
      ]
    }
  },
  {
    "name": "GatherLayer",
    "schema": {
      "category": "Tensor"
    }
  },
  {
    "name": "MeanLayer",
    "schema": {
      "attributes": [
        { "name": "axis", "type": "uint", "src": "axis" },
        { "name": "keepDims", "type": "bool", "src": "keepDims" }
      ]
    }
  },
  {
    "name": "MergerLayer",
    "schema": {
      "category": "Tensor"
    }
  },
  {
    "name": "L2NormalizationLayer",
    "schema": {
      "category": "Normalization",
      "attributes": [
        { "name": "eps", "type": "float", "src": "eps" },
        { "name": "dataLayout", "type": "string", "src": "dataLayout", "src_type": "DataLayout" }
      ]
    }
  },
  {
    "name": "SplitterLayer",
    "schema": {
      "category": "Tensor",
      "attributes": [
        { "name": "concatAxis", "type": "uint", "src": "concatAxis" },
        { "name": "numViews", "type": "uint", "src": "numViewes" },
        { "name": "numDimensions", "type": "uint", "src": "numDimensions" }
      ]
    }
  },
  {
    "name": "DetectionPostProcessLayer",
    "schema": {
      "category": "Custom",
      "attributes": [
        { "name": "maxDetections", "type": "uint", "src": "maxDetections" },
        { "name": "maxClassesPerDetection", "type": "uint", "src": "maxClassesPerDetection" },
        { "name": "detectionsPerClass", "type": "uint", "src": "detectionsPerClass" },
        { "name": "nmsScoreThreshold", "type": "float", "src": "nmsScoreThreshold" },
        { "name": "numIouThreshold", "type": "float", "src": "nmsIouThreshold" },
        { "name": "numClasses", "type": "uint", "src": "numClasses" },
        { "name": "useRegularNms", "type": "bool", "src": "useRegularNms" },
        { "name": "scaleX", "type": "float", "src": "scaleX" },
        { "name": "scaleY", "type": "float", "src": "scaleY" },
        { "name": "scaleW", "type": "float", "src": "scaleW" },
        { "name": "scaleH", "type": "float", "src": "scaleH" }
      ]
    }
  },
  {
    "name": "LstmLayer",
    "schema": {
      "category": "Layer",
      "inputs": [
        { "name": "inputToForgetWeights1", "src": "inputToForgetWeights1" },
        { "name": "inputToCellWeights1", "src": "inputToCellWeights1" },
        { "name": "inputToOutputWeights1", "src": "inputToOutputWeights1" },
        { "name": "recurrentToForgetWeights1", "src": "recurrentToForgetWeights1" },
        { "name": "recurrentToCellWeights1", "src": "recurrentToCellWeights1" },
        { "name": "recurrentToOutputWeights1", "src": "recurrentToOutputWeights1" },
        { "name": "forgetGateBias1", "src": "forgetGateBias1" },
        { "name": "cellBias1", "src": "cellBias1" },
        { "name": "outputGateBias1", "src": "outputGateBias1" },
        { "name": "inputToInputWeights1", "src": "inputToInputWeights1" },
        { "name": "recurrentToInputWeights1", "src": "recurrentToInputWeights1" },
        { "name": "cellToInputWeights1", "src": "cellToInputWeights1" },
        { "name": "inputGateBias1", "src": "inputGateBias1" },
        { "name": "projectionWeights1", "src": "projectionWeights1" },
        { "name": "projectionBias1", "src": "projectionBias1" },
        { "name": "cellToForgetWeights1", "src": "cellToForgetWeights1" },
        { "name": "cellToOutputWeights1", "src": "cellToOutputWeights1" },
        { "name": "inputLayerNormWeights1", "src": "inputLayerNormWeights1" },
        { "name": "forgetLayerNormWeights1", "src": "forgetLayerNormWeights1" },
        { "name": "cellLayerNormWeights1", "src": "cellLayerNormWeights1" },
        { "name": "outputLayerNormWeights1", "src": "outputLayerNormWeights1" }
      ],
      "attributes": [
        { "name": "activationFunc", "type": "uint", "src": "activationFunc" },
        { "name": "clippingThresCell", "type": "float", "src": "clippingThresCell" },
        { "name": "clippingThresProj", "type": "float", "src": "clippingThresProj" },
        { "name": "cifgEnabled", "type": "bool", "src": "cifgEnabled" },
        { "name": "peepholeEnabled", "type": "bool", "src": "peepholeEnabled" },
        { "name": "projectionEnabled", "type": "bool", "src": "projectionEnabled" },
        { "name": "layerNormEnabled", "type": "bool", "src": "layerNormEnabled" }
      ]
    }
  },
  {
    "name": "QuantizeLayer",
    "schema": {
      "category": "Layer"
    }
  },
  {
    "name": "DequantizeLayer",
    "schema": {
      "category": "Layer"
    }
  },
  {
    "name": "MergeLayer",
    "schema": {
      "category": "Layer"
    }
  },
  {
    "name": "SwitchLayer",
    "schema": {
      "category": "Layer"
    }
  },
  {
    "name": "ConcatLayer",
    "schema": {
      "category": "Tensor",
      "attributes": [
        { "name": "concatAxis", "type": "uint", "src": "concatAxis" },
        { "name": "numViews", "type": "uint", "src": "numViewes" },
        { "name": "numDimensions", "type": "uint", "src": "numDimensions" }
      ]
    }
  },
  {
    "name": "SpaceToDepthLayer",
    "schema": {
      "category": "Layer",
      "attributes": [
        { "name": "blockSize", "type": "uint", "src": "blockSize" },
        { "name": "dataLayout", "type": "string", "src": "dataLayout", "src_type": "DataLayout" }
      ]
    }
  },
  {
    "name": "PreluLayer",
    "schema": {
      "category": "Layer"
    }
  },
  {
    "name": "TransposeConvolution2dLayer",
    "schema": {
      "category": "Layer",
      "inputs": [
        { "name": "weight", "src": "weights" },
        { "name": "bias", "src": "biases" }
      ],
      "attributes": [
        { "name": "padding", "type": "string", "src": ["padTop", "padRight", "padBottom", "padLeft"] },
        { "name": "stride", "type": "string", "src": ["strideX", "strideY"] },
        { "name": "dataLayout", "type": "string", "src": "dataLayout", "src_type": "DataLayout" }
      ]
    }
  },
  {
    "name": "ResizeLayer",
    "schema": {
      "category": "Layer",
      "attributes": [
        { "name": "targetWidth", "type": "uint", "src": "targetWidth" },
        { "name": "targetHeight", "type": "uint", "src": "targetHeight" },
        { "name": "method", "type": "string", "src": "method", "src_type": "ResizeMethod" },
        { "name": "dataLayout", "type": "string", "src": "dataLayout", "src_type": "DataLayout" }
      ]
    }
  },
  {
    "name": "StackLayer",
    "schema": {
      "category": "Layer",
      "attributes": [
        { "name": "axis", "type": "uint", "src": "axis" },
        { "name": "numInputs", "type": "uint", "src": "numInputs" },
        { "name": "inputShape", "type": "uint", "src": "inputShape" }
      ]
    }
  },
  {
    "name": "QuantizedLstmLayer",
    "schema": {
      "category": "Layer",
      "inputs": [
        { "name": "inputToInputWeights1", "src": "inputToInputWeights1" },
        { "name": "inputToForgetWeights1", "src": "inputToForgetWeights1" },
        { "name": "inputToCellWeights1", "src": "inputToCellWeights1" },
        { "name": "inputToOutputWeights1", "src": "inputToOutputWeights1" },
        { "name": "recurrentToInputWeights1", "src": "recurrentToInputWeights1" },
        { "name": "recurrentToForgetWeights1", "src": "recurrentToForgetWeights1" },
        { "name": "recurrentToCellWeights1", "src": "recurrentToCellWeights1" },
        { "name": "recurrentToOutputWeights1", "src": "recurrentToOutputWeights1" },
        { "name": "inputGateBias1", "src": "inputGateBias1" },
        { "name": "forgetGateBias1", "src": "forgetGateBias1" },
        { "name": "cellBias1", "src": "cellBias1" },
        { "name": "outputGateBias1", "src": "outputGateBias1" }
      ]
    }
  }
]