awu12's picture
Replace pre-PR#15 conv2d-only trace with current simd-loop set (definitions + workloads + reference/autovec solutions)
f25167e verified
Raw
History Blame Contribute Delete
938 Bytes
{
"name": "loop_217",
"op_type": "loop_217",
"description": "Multiply an INT8 matrix by an INT8 vector accumulating into INT32 (row-major GEMV)",
"tags": [
"simd-loop"
],
"axes": {
"m": {
"type": "var",
"description": "axis m"
},
"n": {
"type": "var",
"description": "axis n"
}
},
"inputs": {
"a": {
"shape": [
"m",
"n"
],
"dtype": "uint8"
},
"b": {
"shape": [
"n"
],
"dtype": "uint8"
}
},
"outputs": {
"c": {
"shape": [
"m"
],
"dtype": "uint32",
"description": "Output array"
}
},
"reference": "import numpy as np\n\ndef run(a, b):\n return (a.astype(np.uint64) @ b.astype(np.uint64)).astype(np.uint32)\n",
"simd_loop_meta": {
"output_inplace": false,
"array_pad": 0,
"scratch": [],
"axes_order": [
"m",
"n"
]
}
}