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 function
can_load
def can_load[A: LoadAtom, LR: TensorLayout, LM: TensorLayout, EM: TensorEngine]() -> Bool
Returns whether load can move a memory tile of layout LM in engine EM into register tiles of layout LR with atom A.
Parameters:
- βA (
LoadAtom): The load atom. - βLR (
TensorLayout): Each thread's register tile layout. - βLM (
TensorLayout): The memory tile's layout. - βEM (
TensorEngine): The memory tile's engine.
Returns:
Bool: True when both layouts are F2-linear, every index bit A fixes is
played by a logical bit, and the register tile holds exactly the
elements left to each thread.