Download definitions/pooling/pooling_fp32_global_avg.json from l3lab/KernelShift: direct link, hf CLI and curl.
- Browser
- Download file 781 Bytes
-
https://huggingface.co/datasets/l3lab/KernelShift/resolve/main/definitions/pooling/pooling_fp32_global_avg.json
- Command line
-
hf download hf://datasets/l3lab/KernelShift/definitions/pooling/pooling_fp32_global_avg.json
-
curl -L -o pooling_fp32_global_avg.json https://huggingface.co/datasets/l3lab/KernelShift/resolve/main/definitions/pooling/pooling_fp32_global_avg.json
781 Bytes
| { | |
| "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" | |
| } | |