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
tcgen05_ld
def tcgen05_ld[*, datapaths: Int, bits: Int, repeat: Int, dtype: DType, pack: Bool, width: Int = (((datapaths * bits) * repeat) // Int(1024))](tmem_addr: UInt32) -> Array[Scalar[dtype], width]
Loads data from tensor memory into registers.
Parameters:
- βdatapaths (
Int): The first dimension of the shape. - βbits (
Int): The second dimension of the shape. - βrepeat (
Int): The repeat factor. - βdtype (
DType): The data type to load. - βpack (
Bool): Whether to pack two 16-bit chunks of adjacent columns into a single 32-bit register. - βwidth (
Int): The number elements in the result vector.
Args:
- βtmem_addr (
UInt32): The address of the tensor memory to load from.
Returns:
Array[Scalar[dtype], width]: The InlineArray containing the loaded data.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!