ArtificialRay
local snapshot before syncing with HF
7502e01
Raw
History Blame Contribute Delete
812 Bytes
{
"name": "loop_002",
"op_type": "loop_002",
"description": "Compute the integer dot product of two uint32 arrays",
"tags": [
"simd-loop"
],
"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 return np.uint32(\n np.sum(a.astype(np.uint64) * b.astype(np.uint64),\n dtype=np.uint64))\n",
"simd_loop_meta": {
"output_inplace": false,
"array_pad": 0,
"scratch": []
}
}