{ "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" }