For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo struct
Axis
struct Axis
Wraps a tensor axis index, optionally normalizing negative values against the tensor rank.
Used by gather and scatter kernels to carry a validated axis through the call stack in a type-safe way.
Fieldsβ
- βaxis (
Int):
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDeletable,
Indexer,
Intable,
Movable,
RegisterPassable,
TrivialRegisterPassable
Methodsβ
__init__β
def __init__(axis: Int) -> Self
def __init__(out self, axis: Int, rank: Int)
__int__β
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!