For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
Struct_moe_finalize
struct Struct_moe_finalize
Registers the mo.moe.finalize graph op with the graph compiler.
Implemented traitsโ
Methodsโ
executeโ
static def execute[out_type: DType, down_type: DType, weight_type: DType, //, target: StringSpan[ImmStaticOrigin]](output: ManagedTensorSlice[IOSpec[_, _].Output, static_spec=output.static_spec], down: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=down.static_spec], restore_token_order: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=restore_token_order.static_spec], router_weight: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=router_weight.static_spec], context: DeviceContext)