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 module
operation_traits
Elementwise operation traits for MAX Graph kernel implementations.
Defines the ElementwiseUnaryOp, ElementwiseBinaryOp, and related traits
that structured kernel implementations satisfy so the graph compiler can fuse
and dispatch elementwise epilogues.
Traitsβ
- β
ElementwiseBinaryComparisonOp: Requires anelementwiseop that compares two SIMD values and yields a boolean mask. - β
ElementwiseBinaryOp: Requires anelementwiseop that combines two SIMD values of the same dtype. - β
ElementwiseUnaryMixedOp: Requires anelementwiseop that produces an output dtype different from its input. - β
ElementwiseUnaryOp: Requires anelementwiseop that transforms one SIMD value into another of the same dtype.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!