Skip to main content

categorical

Function categorical 

Source
pub fn categorical<B: Backend, T: Float>(
    key: &Key<B>,
    logits: &Array<B, T>,
    axis: i64,
) -> Array<B, i32>
Expand description

Samples indices (i32) from the categorical distribution of logits along axis (jax.random.categorical).