IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo struct

Struct_moe_create_indices_with_scales_offset

struct Struct_moe_create_indices_with_scales_offset

Registers the mo.moe.create.indices.with.scales.offset graph op with the graph compiler.

Implemented traitsโ€‹

AnyType, ImplicitlyDeletable

Methodsโ€‹

executeโ€‹

static def execute[target: StringSlice[ImmStaticOrigin]](token_expert_order: ManagedTensorSlice[IOSpec[_, _].Output, static_spec=token_expert_order.static_spec], expert_start_indices: ManagedTensorSlice[IOSpec[_, _].Output, static_spec=expert_start_indices.static_spec], restore_token_order: ManagedTensorSlice[IOSpec[_, _].Output, static_spec=restore_token_order.static_spec], expert_ids: ManagedTensorSlice[IOSpec[_, _].Output, static_spec=expert_ids.static_spec], expert_usage_stats: ManagedTensorSlice[IOSpec[_, _].Output, static_spec=expert_usage_stats.static_spec], scales_offset: ManagedTensorSlice[IOSpec[_, _].Output, static_spec=scales_offset.static_spec], topk_ids: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=topk_ids.static_spec], context: DeviceContext)

Was this page helpful?