For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo struct
Handle
struct Handle[backend: Backend = _resolve_backend[Backend.AUTOMATIC]()]
Owns a vendor BLAS library handle for a resolved Backend.
Parameterized by a Backend (defaulting to the automatically resolved
backend) and stores the underlying cuBLAS, rocBLAS, or hipBLASLt handle in
a Variant. Construction creates the vendor handle and __exit__ destroys
it, so instances should be used as context managers.
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDeletable,
Movable
comptime membersβ
resolved_backendβ
comptime resolved_backend = _resolve_backend[backend]()
typeβ
comptime type = Variant[Optional[Pointer[NoneType, MutUnsafeAnyOrigin, _safe=False]], Handle, Optional[Pointer[NoneType, MutAnyOrigin, _safe=True]]]
Methodsβ
__init__β
def __init__(out self)
__is__β
__isnot__β
__enter__β
def __enter__(self) -> Self
__exit__β
def __exit__(mut self)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!