Download definitions/simd-loop/loop_126.json from arm-bench/arm-bench-trace: direct link, hf CLI and curl.
- Browser
- Download file 970 Bytes
-
https://huggingface.co/datasets/arm-bench/arm-bench-trace/resolve/main/definitions/simd-loop/loop_126.json
- Command line
-
hf download hf://datasets/arm-bench/arm-bench-trace/definitions/simd-loop/loop_126.json
-
curl -L -o loop_126.json https://huggingface.co/datasets/arm-bench/arm-bench-trace/resolve/main/definitions/simd-loop/loop_126.json
970 Bytes
| { | |
| "name": "loop_126", | |
| "op_type": "loop_126", | |
| "description": "Conditionally update array elements where a per-element predicate holds", | |
| "tags": [ | |
| "simd-loop", | |
| "sme2-kernel:streaming-sve" | |
| ], | |
| "axes": { | |
| "N": { | |
| "type": "var", | |
| "description": "Array length" | |
| } | |
| }, | |
| "inputs": { | |
| "a": { | |
| "shape": [ | |
| "N" | |
| ], | |
| "dtype": "int32" | |
| }, | |
| "b": { | |
| "shape": [ | |
| "N" | |
| ], | |
| "dtype": "int32" | |
| } | |
| }, | |
| "outputs": { | |
| "res": { | |
| "shape": null, | |
| "dtype": "uint32", | |
| "description": "Scalar result" | |
| } | |
| }, | |
| "reference": "import numpy as np\n\ndef run(a, b):\n res = np.uint32(0)\n for i in range(len(a)):\n res = np.uint32((int(res) + int(a[i]) * int(b[i])) & 0xFFFFFFFF)\n if res % 2:\n res = np.uint32((int(res) + 1) & 0xFFFFFFFF)\n return res\n", | |
| "simd_loop_meta": { | |
| "output_inplace": false, | |
| "array_pad": 0, | |
| "scratch": [] | |
| } | |
| } | |