Mojo function
gather_elements
gather_elements[input_type: DType, indices_type: DType](input: TileTensor[input_type, input.LayoutType, input.origin, address_space=input.address_space, linear_idx_type=input.linear_idx_type, element_size=input.element_size], indices: TileTensor[indices_type, indices.LayoutType, indices.origin, address_space=indices.address_space, linear_idx_type=indices.linear_idx_type, element_size=indices.element_size], _axis: Int, output: TileTensor[input_type, output.LayoutType, output.origin, address_space=output.address_space, linear_idx_type=output.linear_idx_type, element_size=output.element_size])
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!