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

NullRowScales

struct NullRowScales

Zero-sized no-op row scales, the default for every caller.

Implemented traits​

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

comptime members​

device_type​

comptime device_type = NullRowScales

Enabled​

comptime Enabled = False

Methods​

__init__​

def __init__() -> Self

Constructs the no-op row scales.

load​

def load(self, row: Int) -> Float32

Returns 1.

Args:

  • ​row (Int): Unused.

Returns:

Float32: Always 1.

get_type_name​

static def get_type_name() -> String

Returns the type name.

Returns:

String: Always "NullRowScales".

Was this page helpful?