Skip to main content
Log in

Mojo struct

ReductionMethod

@register_passable(trivial) struct ReductionMethod

Enumerates the supported reduction methods.

Implemented traits

AnyType, Copyable, Movable, UnknownDestructibility

Aliases

TENSOR_CORE

alias TENSOR_CORE = ReductionMethod(0)

Use tensor core for reduction.

WARP

alias WARP = ReductionMethod(1)

Use warp shuffle for reduction.

Methods

__eq__

__eq__(self, other: Self) -> Bool

Checks if two ReductionMethod are equal.

Args:

  • other (Self): The other ReductionMethod to compare.

Returns:

True if the ReductionMethod are equal, false otherwise.

__ne__

__ne__(self, other: Self) -> Bool

Checks if two ReductionMethod are not equal.

Args:

  • other (Self): The other ReductionMethod to compare.

Returns:

True if the ReductionMethod are not equal, false otherwise.

__is__

__is__(self, other: Self) -> Bool

Checks if two ReductionMethod are identical.

Args:

  • other (Self): The other ReductionMethod to compare.

Returns:

True if the ReductionMethod are identical, false otherwise.

__isnot__

__isnot__(self, other: Self) -> Bool

Checks if two ReductionMethod are not identical.

Args:

  • other (Self): The other ReductionMethod to compare.

Returns:

True if the ReductionMethod are not identical, false otherwise.