pub fn categorical<B: Backend, T: Float>( key: &Key<B>, logits: &Array<B, T>, axis: i64, ) -> Array<B, i32>
Samples indices (i32) from the categorical distribution of logits along axis (jax.random.categorical).
i32
logits
axis
jax.random.categorical