awu12's picture
Add simd-loop definitions (23 loops: scalar-output, array-output, inplace-sort)
19deaec verified
Raw
History Blame
753 Bytes
{
"name": "loop_128",
"op_type": "loop_128",
"description": "Shift array elements in place where source and destination ranges may overlap",
"tags": [
"simd-loop"
],
"axes": {
"N": {
"type": "var",
"description": "Array length"
}
},
"inputs": {
"a": {
"shape": [
"N"
],
"dtype": "int32"
},
"b": {
"shape": [
"N"
],
"dtype": "int32"
}
},
"outputs": {
"c": {
"shape": [
"N"
],
"dtype": "uint32",
"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": []
}
}