Skip to main content
Log in

Mojo function

gather_elements

gather_elements[rank: Int, input_type: DType, indices_type: DType](input: NDBuffer[input_type, rank, origin], indices: NDBuffer[indices_type, rank, origin], _axis: Int, output: NDBuffer[input_type, rank, origin])

Implements ONNX GatherElements op which is equivalent to Pytorch gather.

Was this page helpful?