Skip to main content

Mojo struct

Backend

@register_passable(trivial) struct Backend

Implemented traits

AnyType, Copyable, EqualityComparable, ExplicitlyCopyable, Movable, UnknownDestructibility, Writable

Aliases

__copyinit__is_trivial

alias __copyinit__is_trivial = True

__del__is_trivial

alias __del__is_trivial = True

__moveinit__is_trivial

alias __moveinit__is_trivial = True

AUTOMATIC

alias AUTOMATIC = Backend(0)

CUBLAS

alias CUBLAS = Backend(1)

CUBLASLT

alias CUBLASLT = Backend(2)

HIPBLASLT

alias HIPBLASLT = Backend(4)

ROCBLAS

alias ROCBLAS = Backend(3)

Methods

__init__

__init__(value: Int) -> Self

__eq__

__eq__(self, other: Self) -> Bool

Returns:

Bool

__ne__

__ne__(self, other: Self) -> Bool

Returns:

Bool

__is__

__is__(self, other: Self) -> Bool

Returns:

Bool

__isnot__

__isnot__(self, other: Self) -> Bool

Returns:

Bool

__int__

__int__(self) -> Int

Returns:

Int

__str__

__str__(self) -> String

Returns:

String

write_to

write_to(self, mut writer: T)

Was this page helpful?