Skip to main content

Mojo function

sort_buf_descending

sort_buf_descending[dtype: DType, out_idx_type: DType](mut buf_keys: TileTensor[dtype, LayoutType, origin, address_space=address_space, linear_idx_type=linear_idx_type, element_shape_types=element_shape_types], mut buf_ids: TileTensor[out_idx_type, LayoutType, origin, address_space=address_space, linear_idx_type=linear_idx_type, element_shape_types=element_shape_types], vocab_size: Int)

Sort each batch separately in descending order using parallel merge sort.

Was this page helpful?