IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /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. /get-started.md).

Mojo struct

NullExpertLoad

struct NullExpertLoad

Zero-sized sink whose add compiles away.

It contributes no kernel-argument bytes, so a dispatch built with it is byte-identical to one without expert-load counting.

Implemented traits​

AnyType, Copyable, Deinitable, DevicePassable, ExpertLoadSink, ImplicitlyCopyable, Movable, RegisterPassable, TrivialRegisterPassable

comptime members​

device_type​

comptime device_type = NullExpertLoad

Device-side type alias. NullExpertLoad is trivially device-passable.

Methods​

__init__​

def __init__() -> Self

Constructs the no-op sink.

add​

def add(self, local_expert: Int, n_local_experts: Int, count: UInt32)

Does nothing.

Args:

  • ​local_expert (Int): Unused.
  • ​n_local_experts (Int): Unused.
  • ​count (UInt32): Unused.

get_type_name​

static def get_type_name() -> String

Returns the type name for runtime diagnostics.

Returns:

String: Always "NullExpertLoad".

Was this page helpful?