pub fn truncation_select<B: Backend>(
population: &Tensor<B, 2>,
fitness: &[f32],
top_k: usize,
device: &B::Device,
) -> Tensor<B, 2>Expand description
Gather the top_k lowest-fitness rows out of the population.
§Panics
Inherits the panic conditions of truncation_indices_host:
fitness.is_empty() or top_k > fitness.len().