Skip to main content

TOP_K

Static TOP_K 

Source
pub static TOP_K: Prim
Expand description

The k largest elements along an axis in descending order, and their indices as i32 (Params::TopK). Floats are ordered by XLA’s total order -NaN < -inf < ... < -0.0 < 0.0 < ... < inf < NaN; equal elements keep their order.