| { | |
| "name": "loop_035", | |
| "op_type": "loop_035", | |
| "description": "Element-wise addition of two arrays with arbitrary length (non-multiple-of-vector-width)", | |
| "tags": [ | |
| "simd-loop" | |
| ], | |
| "axes": { | |
| "N": { | |
| "type": "var", | |
| "description": "Array length" | |
| } | |
| }, | |
| "inputs": { | |
| "a": { | |
| "shape": [ | |
| "N" | |
| ], | |
| "dtype": "float32" | |
| }, | |
| "b": { | |
| "shape": [ | |
| "N" | |
| ], | |
| "dtype": "float32" | |
| } | |
| }, | |
| "outputs": { | |
| "c": { | |
| "shape": [ | |
| "N" | |
| ], | |
| "dtype": "float32", | |
| "description": "Output array" | |
| } | |
| }, | |
| "reference": "import numpy as np\n\ndef run(a, b):\n return a + b\n", | |
| "simd_loop_meta": { | |
| "output_inplace": false, | |
| "array_pad": 0, | |
| "scratch": [] | |
| } | |
| } | |