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:
get_type_name
static def get_type_name() -> String
Returns the type name for runtime diagnostics.
Returns:
String: Always "NullExpertLoad".