Mojo function
sort_buf_descending
sort_buf_descending[type: DType, out_idx_type: DType, rank: Int, //](mut buf_keys: NDBuffer[type, rank, origin], mut buf_ids: NDBuffer[out_idx_type, rank, origin], vocab_size: Int)
Sort each batch separately in descending order using parallel merge sort.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!