Mojo function
gather_elementwise_fn_wrapper
gather_elementwise_fn_wrapper[*, type: DType, indices_type: DType, input_fn: fn[Int, Int](Index[$1]) capturing -> SIMD[type, $0], indices_fn: fn[Int, Int](Index[$1]) capturing -> SIMD[indices_type, $0], output_fn: fn[Int, Int](Index[$1], SIMD[type, $0]) capturing -> None, simd_width: Int, prefetch_fn: OptionalReg[fn[Int, Int](Index[$0], Index[$1]) capturing -> None] = OptionalReg[fn[Int, Int](Index[$0], Index[$1]) capturing -> None]({:i1 0, 1})](axis: Axis, input_shape: Index[size, element_type=element_type], indices_shape: Index[size, element_type=element_type], output_shape: Index[size, element_type=element_type], coords: Index[size, element_type=element_type])
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!