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

NoRemap

struct NoRemap

Writes nothing: the producer emits logical indices only.

Implemented traits​

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

comptime members​

device_type​

comptime device_type = NoRemap

Device-side type alias; the struct is trivially device-passable.

enabled​

comptime enabled = False

Nothing is written.

Methods​

__init__​

def __init__() -> Self

Creates the empty remap.

offset​

def offset(self, slots: Int) -> Self

Returns self; there is no output to advance.

Args:

  • ​slots (Int): Ignored.

Returns:

Self: self.

store​

def store(self, idx: Int, batch: Int, logical: Int32)

Does nothing.

Args:

  • ​idx (Int): Ignored.
  • ​batch (Int): Ignored.
  • ​logical (Int32): Ignored.

get_type_name​

static def get_type_name() -> String

Returns the type name for runtime diagnostics.

Returns:

String: Always "NoRemap".

Was this page helpful?