mlx_rs::ops::indexing

Function topk_all_device

Source
pub fn topk_all_device(
    a: impl AsRef<Array>,
    k: i32,
    stream: impl AsRef<Stream>,
) -> Result<Array>
Expand description

Returns the k largest elements from the flattened input array.