Skip to main content
Log in

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.