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

TileTensorable

A DenseTensor that can project to a TileTensor view over its storage.

Lets the kernel work on a non-fused argument directly as a TileTensor (via to_tile_tensor) instead of going through the fused load/store/transform access.

The projection's origin is UntrackedOrigin because the backing memory belongs to the graph executor: its liveness guarantee is invisible to the origin system, and the generated argument has no call-site origin it could name instead.

Implemented traits​

AnyType, DenseTensor, Tensor

comptime members​

mut​

comptime mut

Required methods​

to_tile_tensor​

def to_tile_tensor(self) -> TileTensor[Self.dtype, Self.LayoutType, UntrackedOrigin[_Self.mut], Engine=Self.Engine]

Projects the argument to a TileTensor over its storage.

Returns:

TileTensor[_Self.dtype, _Self.LayoutType, UntrackedOrigin[_Self.mut], Engine=_Self.Engine]: A TileTensor view with the argument's dtype, layout, and mut.

Was this page helpful?