File size: 781 Bytes
bbe836b | 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 | {
"name": "pooling_fp32_global_avg",
"op_type": "pooling",
"description": "global average pooling",
"tags": [
"status:active",
"model:resnet50",
"baseline-solution:ncnn"
],
"axes": {
"N": {
"type": "var"
},
"C": {
"type": "var"
},
"H": {
"type": "var",
"parent": "N"
},
"W": {
"type": "var",
"parent": "N"
}
},
"inputs": {
"input": {
"shape": [
"N",
"C",
"H",
"W"
],
"dtype": "float32"
}
},
"outputs": {
"output": {
"shape": [
"N",
"C"
],
"dtype": "float32"
}
},
"constraints": [],
"reference": "import numpy as np\ndef run(input):\n return input.mean(axis=(-2, -1))\n"
}
|