For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo function
gather_elements
def gather_elements[input_type: DType, indices_type: DType](input: TileTensor[input_type, address_space=input.address_space, linear_idx_type=input.linear_idx_type, element_size=input.element_size], indices: TileTensor[indices_type, address_space=indices.address_space, linear_idx_type=indices.linear_idx_type, element_size=indices.element_size], _axis: Int, output: TileTensor[input_type, address_space=output.address_space, linear_idx_type=output.linear_idx_type, element_size=output.element_size], ctx: DeviceContext)
Implements ONNX GatherElements op which is equivalent to Pytorch gather.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!