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
unread_pointer
def unread_pointer[T: OptionalPointer]() -> T
Returns a placeholder T for an operand that will never be dereferenced.
For defaulting an argument whose pointer type is shared with another
operand but which the comptime configuration never reads, e.g.
extra_topk_lengths without an extra KV cache. A non-null T gets a
dangling pointer.
Parameters:
- T (
OptionalPointer): TheOptionalPointertype.
Returns:
T: A null or dangling value typed as T.