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 function

raw_pointer

def raw_pointer[dtype: DType](t: TileTensor[dtype, Engine=t.Engine, address_space=t.address_space, linear_idx_type=t.linear_idx_type]) -> MutPointer[Scalar[dtype], MutUntrackedOrigin]

Returns a generic pointer to a tensor's first element.

Parameters:

  • ​dtype (DType): The element type.

Args:

Returns:

MutPointer[Scalar[dtype], MutUntrackedOrigin]: The tensor's base address, without its origin or address space.

Was this page helpful?