Mojo struct
ReductionMethod
struct ReductionMethod
Enumerates the supported reduction methods.
Aliases
TENSOR_CORE = ReductionMethod(0)
: Use tensor core for reduction.WARP = ReductionMethod(1)
: Use warp shuffle for reduction.
Implemented traits
AnyType
,
Copyable
,
ExplicitlyCopyable
,
Movable
,
UnknownDestructibility
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.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!