Skip to main content

Mojo struct

Backend

struct Backend

Implemented traits​

AnyType, Copyable, Equatable, ImplicitlyCopyable, ImplicitlyDestructible, Movable, RegisterPassable, TrivialRegisterPassable, Writable

comptime members​

AUTOMATIC​

comptime AUTOMATIC = Backend(0)

CUBLAS​

comptime CUBLAS = Backend(1)

CUBLASLT​

comptime CUBLASLT = Backend(2)

HIPBLASLT​

comptime HIPBLASLT = Backend(4)

ROCBLAS​

comptime 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

write_to​

write_to(self, mut writer: T)