Download definitions/simd-loop/loop_024.json from arm-bench/arm-bench-trace: direct link, hf CLI and curl.
- Browser
- Download file 875 Bytes
-
https://huggingface.co/datasets/arm-bench/arm-bench-trace/resolve/main/definitions/simd-loop/loop_024.json
- Command line
-
hf download hf://datasets/arm-bench/arm-bench-trace/definitions/simd-loop/loop_024.json
-
curl -L -o loop_024.json https://huggingface.co/datasets/arm-bench/arm-bench-trace/resolve/main/definitions/simd-loop/loop_024.json
875 Bytes
| { | |
| "name": "loop_024", | |
| "op_type": "loop_024", | |
| "description": "Sum of absolute differences between two byte arrays, accumulated into a uint32", | |
| "tags": [ | |
| "simd-loop", | |
| "sme2-kernel:streaming-sve" | |
| ], | |
| "axes": { | |
| "N": { | |
| "type": "var", | |
| "description": "Array length" | |
| } | |
| }, | |
| "inputs": { | |
| "a": { | |
| "shape": [ | |
| "N" | |
| ], | |
| "dtype": "int8" | |
| }, | |
| "b": { | |
| "shape": [ | |
| "N" | |
| ], | |
| "dtype": "int8" | |
| } | |
| }, | |
| "outputs": { | |
| "res": { | |
| "shape": null, | |
| "dtype": "uint32", | |
| "description": "Scalar result" | |
| } | |
| }, | |
| "reference": "import numpy as np\n\ndef run(a, b):\n return np.uint32(\n np.sum(np.abs(a.astype(np.int32) - b.astype(np.int32)),\n dtype=np.uint64))\n", | |
| "simd_loop_meta": { | |
| "output_inplace": false, | |
| "array_pad": 0, | |
| "scratch": [] | |
| } | |
| } | |