Skip to main content

argmax

Function argmax 

Source
pub fn argmax(logits: &[f32]) -> usize
Expand description

Greedy sampling: return the token with the highest logit.