For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
GatherSum
struct GatherSum
Registers the mo.gather_sum graph op with the graph compiler.
Implemented traitsโ
Methodsโ
executeโ
static def execute(output: T, input: T, indices: T, ctx: DeviceContext)
Fused gather (axis 0) + sum reduction (axis 1).
Dispatches to the CPU gather_reduce kernel or the GPU
gather_sum kernel based on target.