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 trait

LoadAccess

Marker trait: this tensor supports SIMD loads.

The marker only advertises the capability; it carries no method, so a kernel can bind it in its signature before the argument reaches an execution context where loads are legal. Inside its body the kernel refines to Loadable, which supplies the load method.

Implemented traits

AnyType, Tensor

comptime members

dtype

comptime dtype

rank

comptime rank

ShapeType

comptime ShapeType

Required methods

shape

def shape(self) -> Self.ShapeType

Returns the tensor's runtime shape.

Returns:

_Self.ShapeType: The shape as a Coord of the argument's ShapeType.