Skip to main content
Log in

Mojo function

moe_create_indices_kernel

moe_create_indices_kernel[input_type: DType, num_threads: Int](token_expert_order: NDBuffer[uint32, 1, MutableAnyOrigin], expert_start_indices: NDBuffer[uint32, 1, MutableAnyOrigin], restore_token_order: NDBuffer[uint32, 1, MutableAnyOrigin], expert_ids: NDBuffer[uint32, 1, MutableAnyOrigin], expert_usage_stats: NDBuffer[uint32, 1, MutableAnyOrigin], indices_padded: NDBuffer[uint32, 1, MutableAnyOrigin], topk_ids_padded: NDBuffer[input_type, 1, MutableAnyOrigin], topk_ids: NDBuffer[input_type, 1, MutableAnyOrigin])

Was this page helpful?