Select K
Source header: cuvs/selection/select_k.hpp
Batched-select k smallest or largest key/values
selection::select_k
Select k smallest or largest key/values from each row in the input data.
If you think of the input data in_val as a row-major matrix with len columns and batch_size rows, then this function selects k smallest/largest values in each row and fills in the row-major matrix out_val of size (batch_size, k).
Example usage
Parameters
Returns
void
Additional overload: selection::select_k
Select k smallest or largest key/values from each row in the input data.
If you think of the input data in_val as a row-major matrix with len columns and batch_size rows, then this function selects k smallest/largest values in each row and fills in the row-major matrix out_val of size (batch_size, k).
Example usage
Parameters
Returns
void
Additional overload: selection::select_k
Select k smallest or largest key/values from each row in the input data.
If you think of the input data in_val as a row-major matrix with len columns and batch_size rows, then this function selects k smallest/largest values in each row and fills in the row-major matrix out_val of size (batch_size, k).
Example usage
Parameters
Returns
void